shoppy_cartus 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e54abbf3e8b9986e65d80139ff987f6103e71147
4
- data.tar.gz: d2d4ef2e9f1e5090339690fd6da45674683004b5
3
+ metadata.gz: 1de43edd5a0ce79c35011021f6be947f58e34e38
4
+ data.tar.gz: 0d98756400bb6f1f9812a66fba30d06f942eccfd
5
5
  SHA512:
6
- metadata.gz: 446cdcd90075c2d04b8e1a116a81bd6980da8d37804e3699cff9417dafdbab645b856f4d830f96c62ae38457e13624a362c9e53047e08496334f0fd4808eb071
7
- data.tar.gz: 81048f34b9971881b9811f7eba369b39129b96cf7196888c039fef7652bffd7a7654e52ba5554034044dd3852461a3540b9528c66fb6f415b7d32ab40ba7bb3e
6
+ metadata.gz: 0ce8251f9cf2259f363a444be526aed864e1aaf6dee6716bfe2b0c454249ee55910d4158e38317f051c9f7fe0f587c02f7e1314fc565f4710bd1c8ae3341abc0
7
+ data.tar.gz: ac16c2b7b27e46ac105981709e7f4a9d448576cc77ef0451479fa062fe383977dc386b520679c84901928396979f913021eb7cf0878082db08380c7b93ba8988
@@ -1,5 +1,5 @@
1
1
  module ShoppyCartus
2
- class ApplicationController < ActionController::Base
2
+ class ApplicationController < ShoppyCartus.parent_controller.constantize
3
3
  before_action :set_order, :set_locale, :current_ability
4
4
 
5
5
  [CanCan::AccessDenied, ActiveRecord::RecordNotFound, ActionController::RoutingError].each do |error|
@@ -13,10 +13,6 @@ module ShoppyCartus
13
13
  redirect_to order_items_path, alert: t('checkout.authorize')
14
14
  end
15
15
 
16
- def current_user
17
- @current_user ||= ShoppyCartus.user_class.constantize.find_by(id: session[:user_id])
18
- end
19
-
20
16
  def current_order
21
17
  ShoppyCartus::Order.find_by(id: session[:order_id]) || ShoppyCartus::Order.active_order_for_user(current_user) || new_session_order
22
18
  end
@@ -1,3 +1,3 @@
1
1
  module ShoppyCartus
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/lib/shoppy_cartus.rb CHANGED
@@ -20,6 +20,9 @@ module ShoppyCartus
20
20
  mattr_accessor :product_class
21
21
  @@product_class = 'Book'
22
22
 
23
+ mattr_accessor :parent_controller
24
+ @@parent_controller = 'ApplicationController'
25
+
23
26
  def self.setup
24
27
  yield self
25
28
  end
@@ -1,3 +1,7 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery with: :exception
3
+
4
+ def current_user
5
+ @current_user ||= ShoppyCartus.user_class.constantize.find_by(id: session[:user_id])
6
+ end
3
7
  end
@@ -55999,3 +55999,505 @@ Processing by ShoppyCartus::OrderItemsController#index as HTML
55999
55999
  Completed 200 OK in 55ms (Views: 45.1ms | ActiveRecord: 1.3ms)
56000
56000
 
56001
56001
 
56002
+ Started GET "/" for 127.0.0.1 at 2018-04-10 16:25:50 +0300
56003
+  (29.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56004
+ Processing by Rails::WelcomeController#index as HTML
56005
+ Rendering /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb
56006
+ Rendered /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb (5.6ms)
56007
+ Completed 200 OK in 49ms (Views: 12.2ms | ActiveRecord: 0.0ms)
56008
+
56009
+
56010
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:25:55 +0300
56011
+ Processing by ShoppyCartus::OrdersController#index as HTML
56012
+ ShoppyCartus::Order Load (124.9ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56013
+ Completed 500 Internal Server Error in 178ms (ActiveRecord: 129.5ms)
56014
+
56015
+
56016
+
56017
+ NoMethodError (super: no superclass method `current_user' for #<ShoppyCartus::OrdersController:0x000000000376beb8>
56018
+ Did you mean? current_order):
56019
+
56020
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:17:in `current_user'
56021
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:21:in `current_order'
56022
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:39:in `set_order'
56023
+ activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
56024
+ activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
56025
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'
56026
+ activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
56027
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
56028
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
56029
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
56030
+ activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
56031
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
56032
+ actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
56033
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
56034
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
56035
+ activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
56036
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
56037
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
56038
+ actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
56039
+ activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
56040
+ actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
56041
+ actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
56042
+ actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
56043
+ actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
56044
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
56045
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
56046
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56047
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56048
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56049
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56050
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56051
+ railties (5.1.6) lib/rails/railtie.rb:185:in `public_send'
56052
+ railties (5.1.6) lib/rails/railtie.rb:185:in `method_missing'
56053
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
56054
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
56055
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56056
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56057
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56058
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56059
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
56060
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
56061
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
56062
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
56063
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
56064
+ actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
56065
+ activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
56066
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
56067
+ activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
56068
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
56069
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56070
+ actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
56071
+ actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
56072
+ railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
56073
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
56074
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
56075
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
56076
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
56077
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
56078
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
56079
+ actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
56080
+ request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
56081
+ actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
56082
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
56083
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
56084
+ activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
56085
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56086
+ actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
56087
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
56088
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56089
+ rack (2.0.4) lib/rack/handler/webrick.rb:86:in `service'
56090
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
56091
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
56092
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
56093
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:26:16 +0300
56094
+ Processing by ShoppyCartus::OrdersController#index as HTML
56095
+ ShoppyCartus::Order Load (0.6ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56096
+ Completed 500 Internal Server Error in 27ms (ActiveRecord: 1.9ms)
56097
+
56098
+
56099
+
56100
+ NoMethodError (undefined method `super' for #<ActionDispatch::Routing::RoutesProxy:0x000000000551a978>):
56101
+
56102
+ actionpack (5.1.6) lib/action_dispatch/routing/routes_proxy.rb:47:in `method_missing'
56103
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:17:in `current_user'
56104
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:21:in `current_order'
56105
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:39:in `set_order'
56106
+ activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
56107
+ activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
56108
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'
56109
+ activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
56110
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
56111
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
56112
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
56113
+ activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
56114
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
56115
+ actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
56116
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
56117
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
56118
+ activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
56119
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
56120
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
56121
+ actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
56122
+ activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
56123
+ actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
56124
+ actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
56125
+ actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
56126
+ actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
56127
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
56128
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
56129
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56130
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56131
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56132
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56133
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56134
+ railties (5.1.6) lib/rails/railtie.rb:185:in `public_send'
56135
+ railties (5.1.6) lib/rails/railtie.rb:185:in `method_missing'
56136
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
56137
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
56138
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56139
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56140
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56141
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56142
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
56143
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
56144
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
56145
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
56146
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
56147
+ actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
56148
+ activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
56149
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
56150
+ activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
56151
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
56152
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56153
+ actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
56154
+ actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
56155
+ railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
56156
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
56157
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
56158
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
56159
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
56160
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
56161
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
56162
+ actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
56163
+ request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
56164
+ actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
56165
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
56166
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
56167
+ activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
56168
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56169
+ actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
56170
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
56171
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56172
+ rack (2.0.4) lib/rack/handler/webrick.rb:86:in `service'
56173
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
56174
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
56175
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
56176
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:26:22 +0300
56177
+ Processing by ShoppyCartus::OrdersController#index as HTML
56178
+ ShoppyCartus::Order Load (0.2ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56179
+ Completed 500 Internal Server Error in 27ms (ActiveRecord: 1.1ms)
56180
+
56181
+
56182
+
56183
+ NoMethodError (super: no superclass method `current_user' for #<ShoppyCartus::OrdersController:0x00000000044cb068>
56184
+ Did you mean? current_order):
56185
+
56186
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:17:in `current_user'
56187
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:21:in `current_order'
56188
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:39:in `set_order'
56189
+ activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
56190
+ activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
56191
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'
56192
+ activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
56193
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
56194
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
56195
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
56196
+ activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
56197
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
56198
+ actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
56199
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
56200
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
56201
+ activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
56202
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
56203
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
56204
+ actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
56205
+ activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
56206
+ actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
56207
+ actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
56208
+ actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
56209
+ actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
56210
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
56211
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
56212
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56213
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56214
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56215
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56216
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56217
+ railties (5.1.6) lib/rails/railtie.rb:185:in `public_send'
56218
+ railties (5.1.6) lib/rails/railtie.rb:185:in `method_missing'
56219
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
56220
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
56221
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56222
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56223
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56224
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56225
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
56226
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
56227
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
56228
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
56229
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
56230
+ actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
56231
+ activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
56232
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
56233
+ activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
56234
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
56235
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56236
+ actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
56237
+ actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
56238
+ railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
56239
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
56240
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
56241
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
56242
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
56243
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
56244
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
56245
+ actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
56246
+ request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
56247
+ actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
56248
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
56249
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
56250
+ activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
56251
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56252
+ actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
56253
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
56254
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56255
+ rack (2.0.4) lib/rack/handler/webrick.rb:86:in `service'
56256
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
56257
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
56258
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
56259
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:26:22 +0300
56260
+ Processing by ShoppyCartus::OrdersController#index as HTML
56261
+ ShoppyCartus::Order Load (0.6ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56262
+ Completed 500 Internal Server Error in 21ms (ActiveRecord: 4.8ms)
56263
+
56264
+
56265
+
56266
+ NoMethodError (super: no superclass method `current_user' for #<ShoppyCartus::OrdersController:0x0000000005b39a70>
56267
+ Did you mean? current_order):
56268
+
56269
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:17:in `current_user'
56270
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:21:in `current_order'
56271
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:39:in `set_order'
56272
+ activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
56273
+ activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
56274
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'
56275
+ activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
56276
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
56277
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
56278
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
56279
+ activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
56280
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
56281
+ actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
56282
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
56283
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
56284
+ activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
56285
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
56286
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
56287
+ actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
56288
+ activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
56289
+ actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
56290
+ actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
56291
+ actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
56292
+ actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
56293
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
56294
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
56295
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56296
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56297
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56298
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56299
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56300
+ railties (5.1.6) lib/rails/railtie.rb:185:in `public_send'
56301
+ railties (5.1.6) lib/rails/railtie.rb:185:in `method_missing'
56302
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
56303
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
56304
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56305
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56306
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56307
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56308
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
56309
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
56310
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
56311
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
56312
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
56313
+ actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
56314
+ activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
56315
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
56316
+ activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
56317
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
56318
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56319
+ actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
56320
+ actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
56321
+ railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
56322
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
56323
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
56324
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
56325
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
56326
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
56327
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
56328
+ actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
56329
+ request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
56330
+ actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
56331
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
56332
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
56333
+ activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
56334
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56335
+ actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
56336
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
56337
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56338
+ rack (2.0.4) lib/rack/handler/webrick.rb:86:in `service'
56339
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
56340
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
56341
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
56342
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:26:57 +0300
56343
+ Processing by ShoppyCartus::OrdersController#index as HTML
56344
+ ShoppyCartus::Order Load (0.5ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56345
+ Completed 500 Internal Server Error in 47ms (ActiveRecord: 2.0ms)
56346
+
56347
+
56348
+
56349
+ NameError (undefined local variable or method `current_user' for #<ShoppyCartus::OrdersController:0x00000000047cc9d8>
56350
+ Did you mean? current_order):
56351
+
56352
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:17:in `current_order'
56353
+ /var/www/ruby/shoppy_cartus/app/controllers/shoppy_cartus/application_controller.rb:35:in `set_order'
56354
+ activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
56355
+ activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
56356
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'
56357
+ activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
56358
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
56359
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
56360
+ activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
56361
+ activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
56362
+ actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
56363
+ actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
56364
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
56365
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
56366
+ activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
56367
+ activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
56368
+ actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
56369
+ actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
56370
+ activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
56371
+ actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
56372
+ actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
56373
+ actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
56374
+ actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
56375
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
56376
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
56377
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56378
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56379
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56380
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56381
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56382
+ railties (5.1.6) lib/rails/railtie.rb:185:in `public_send'
56383
+ railties (5.1.6) lib/rails/railtie.rb:185:in `method_missing'
56384
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
56385
+ actionpack (5.1.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
56386
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
56387
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
56388
+ actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
56389
+ actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
56390
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
56391
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
56392
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
56393
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
56394
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
56395
+ actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
56396
+ activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
56397
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
56398
+ activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
56399
+ actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
56400
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56401
+ actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
56402
+ actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
56403
+ railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
56404
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
56405
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
56406
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
56407
+ activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
56408
+ railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
56409
+ sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
56410
+ actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
56411
+ request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
56412
+ actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
56413
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
56414
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
56415
+ activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
56416
+ actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
56417
+ actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
56418
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
56419
+ railties (5.1.6) lib/rails/engine.rb:522:in `call'
56420
+ rack (2.0.4) lib/rack/handler/webrick.rb:86:in `service'
56421
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
56422
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
56423
+ /home/dima/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
56424
+ Started GET "/" for 127.0.0.1 at 2018-04-10 16:49:39 +0300
56425
+ Processing by Rails::WelcomeController#index as HTML
56426
+ Rendering /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb
56427
+ Rendered /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb (2.2ms)
56428
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms)
56429
+
56430
+
56431
+ Started GET "/" for 127.0.0.1 at 2018-04-10 16:50:17 +0300
56432
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56433
+ Processing by Rails::WelcomeController#index as HTML
56434
+ Rendering /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb
56435
+ Rendered /home/dima/.rvm/gems/ruby-2.4.2/gems/railties-5.1.6/lib/rails/templates/rails/welcome/index.html.erb (2.5ms)
56436
+ Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.0ms)
56437
+
56438
+
56439
+ Started GET "/shoppy_cartus/" for 127.0.0.1 at 2018-04-10 16:50:34 +0300
56440
+ Processing by ShoppyCartus::OrderItemsController#index as HTML
56441
+ ShoppyCartus::Order Load (0.6ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56442
+ User Load (75.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56443
+ ShoppyCartus::Order Load (17.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56444
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56445
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56446
+ ShoppyCartus::OrderItem Exists (16.3ms) SELECT 1 AS one FROM "shoppy_cartus_order_items" WHERE "shoppy_cartus_order_items"."order_id" = $1 LIMIT $2 [["order_id", 108], ["LIMIT", 1]]
56447
+ Rendering /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/order_items/index.html.haml within layouts/shoppy_cartus/application
56448
+ CACHE ShoppyCartus::OrderItem Exists (0.0ms) SELECT 1 AS one FROM "shoppy_cartus_order_items" WHERE "shoppy_cartus_order_items"."order_id" = $1 LIMIT $2 [["order_id", 108], ["LIMIT", 1]]
56449
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/order_items/index.html.haml within layouts/shoppy_cartus/application (15.9ms)
56450
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/partials/_flash_messages.html.haml (1.2ms)
56451
+ Completed 200 OK in 551ms (Views: 253.3ms | ActiveRecord: 154.5ms)
56452
+
56453
+
56454
+ Started GET "/shoppy_cartus/" for 127.0.0.1 at 2018-04-10 16:52:56 +0300
56455
+ Processing by ShoppyCartus::OrderItemsController#index as HTML
56456
+ ShoppyCartus::Order Load (0.8ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56457
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56458
+ ShoppyCartus::Order Load (0.5ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56459
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56460
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56461
+ ShoppyCartus::OrderItem Exists (0.4ms) SELECT 1 AS one FROM "shoppy_cartus_order_items" WHERE "shoppy_cartus_order_items"."order_id" = $1 LIMIT $2 [["order_id", 108], ["LIMIT", 1]]
56462
+ Rendering /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/order_items/index.html.haml within layouts/shoppy_cartus/application
56463
+ CACHE ShoppyCartus::OrderItem Exists (0.0ms) SELECT 1 AS one FROM "shoppy_cartus_order_items" WHERE "shoppy_cartus_order_items"."order_id" = $1 LIMIT $2 [["order_id", 108], ["LIMIT", 1]]
56464
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/order_items/index.html.haml within layouts/shoppy_cartus/application (19.4ms)
56465
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/partials/_flash_messages.html.haml (1.2ms)
56466
+ Completed 200 OK in 78ms (Views: 63.9ms | ActiveRecord: 2.0ms)
56467
+
56468
+
56469
+ Started GET "/shoppy_cartus/orders" for 127.0.0.1 at 2018-04-10 16:53:02 +0300
56470
+ Processing by ShoppyCartus::OrdersController#index as HTML
56471
+ ShoppyCartus::Order Load (0.4ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56472
+ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56473
+ ShoppyCartus::Order Load (0.9ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56474
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56475
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56476
+ Rendering /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/orders/index.html.haml within layouts/shoppy_cartus/application
56477
+ ShoppyCartus::Order Load (0.9ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = $1 AND ("shoppy_cartus_orders"."state" != $2) [["user_id", 11], ["state", "filling"]]
56478
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/orders/index.html.haml within layouts/shoppy_cartus/application (21.6ms)
56479
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/partials/_flash_messages.html.haml (1.5ms)
56480
+ Completed 200 OK in 95ms (Views: 80.1ms | ActiveRecord: 3.3ms)
56481
+
56482
+
56483
+ Started GET "/shoppy_cartus/orders/11" for 127.0.0.1 at 2018-04-10 16:53:06 +0300
56484
+ Processing by ShoppyCartus::OrdersController#show as HTML
56485
+ Parameters: {"id"=>"11"}
56486
+ ShoppyCartus::Order Load (0.8ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56487
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56488
+ ShoppyCartus::Order Load (0.5ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56489
+ CACHE ShoppyCartus::Order Load (0.0ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" IS NULL LIMIT $1 [["LIMIT", 1]]
56490
+ CACHE ShoppyCartus::Order Load (0.1ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."user_id" = 11 AND "shoppy_cartus_orders"."state" = $1 LIMIT $2 [["state", "filling"], ["LIMIT", 1]]
56491
+ ShoppyCartus::Order Load (0.6ms) SELECT "shoppy_cartus_orders".* FROM "shoppy_cartus_orders" WHERE "shoppy_cartus_orders"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56492
+ Rendering /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/orders/show.html.haml within layouts/shoppy_cartus/application
56493
+ ShoppyCartus::Address Load (74.7ms) SELECT "shoppy_cartus_addresses".* FROM "shoppy_cartus_addresses" WHERE "shoppy_cartus_addresses"."addressable_id" = $1 AND "shoppy_cartus_addresses"."addressable_type" = $2 [["addressable_id", 11], ["addressable_type", "ShoppyCartus::Order"]]
56494
+ ShoppyCartus::Delivery Load (6.9ms) SELECT "shoppy_cartus_deliveries".* FROM "shoppy_cartus_deliveries" WHERE "shoppy_cartus_deliveries"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56495
+ ShoppyCartus::CreditCard Load (1.7ms) SELECT "shoppy_cartus_credit_cards".* FROM "shoppy_cartus_credit_cards" WHERE "shoppy_cartus_credit_cards"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]]
56496
+ ShoppyCartus::OrderItem Load (0.5ms) SELECT "shoppy_cartus_order_items".* FROM "shoppy_cartus_order_items" WHERE "shoppy_cartus_order_items"."order_id" = $1 [["order_id", 11]]
56497
+ Book Load (8.5ms) SELECT "books".* FROM "books" WHERE "books"."id" = $1 LIMIT $2 [["id", 21], ["LIMIT", 1]]
56498
+ ShoppyCartus::Coupon Load (21.4ms) SELECT "shoppy_cartus_coupons".* FROM "shoppy_cartus_coupons" WHERE "shoppy_cartus_coupons"."order_id" = $1 LIMIT $2 [["order_id", 11], ["LIMIT", 1]]
56499
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/orders/show.html.haml within layouts/shoppy_cartus/application (236.9ms)
56500
+ Rendered /var/www/ruby/shoppy_cartus/app/views/shoppy_cartus/partials/_flash_messages.html.haml (1.3ms)
56501
+ Completed 200 OK in 298ms (Views: 147.7ms | ActiveRecord: 130.0ms)
56502
+
56503
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoppy_cartus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Bavykin