wordjelly-auth 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/auth/overrides.scss +8 -0
- data/app/controllers/auth/authenticated_controller.rb +6 -0
- data/app/controllers/auth/concerns/shopping/cart_controller_concern.rb +9 -6
- data/app/controllers/auth/concerns/shopping/cart_item_controller_concern.rb +7 -6
- data/app/controllers/auth/concerns/shopping/payment_controller_concern.rb +2 -2
- data/app/controllers/auth/concerns/shopping/personality_controller_concern.rb +4 -4
- data/app/controllers/auth/concerns/shopping/product_controller_concern.rb +10 -9
- data/app/controllers/auth/concerns/token_concern.rb +2 -1
- data/app/controllers/auth/images_controller.rb +1 -1
- data/app/controllers/auth/profiles_controller.rb +11 -6
- data/app/controllers/auth/search_controller.rb +3 -0
- data/app/controllers/auth/shopping/bar_codes_controller.rb +109 -0
- data/app/jobs/otp_job.rb +1 -1
- data/app/models/auth/concerns/es_concern.rb +93 -16
- data/app/models/auth/concerns/shopping/bar_code_concern.rb +35 -9
- data/app/models/auth/concerns/shopping/cart_concern.rb +107 -10
- data/app/models/auth/concerns/shopping/cart_item_concern.rb +82 -7
- data/app/models/auth/concerns/shopping/discount_concern.rb +32 -1
- data/app/models/auth/concerns/shopping/lifecycle_of_state_concern.txt +26 -0
- data/app/models/auth/concerns/shopping/pay_u_money_concern.rb +4 -2
- data/app/models/auth/concerns/shopping/payment_concern.rb +19 -5
- data/app/models/auth/concerns/shopping/personality_concern.rb +61 -6
- data/app/models/auth/concerns/shopping/place_concern.rb +54 -1
- data/app/models/auth/concerns/shopping/product_concern.rb +143 -8
- data/app/models/auth/concerns/user_concern.rb +83 -1
- data/app/models/auth/image.rb +16 -5
- data/app/models/auth/shopping/bar_code.rb +98 -47
- data/app/models/auth/shopping/cart_item.rb +3 -0
- data/app/models/auth/shopping/personality.rb +3 -2
- data/app/models/auth/shopping/place.rb +3 -0
- data/app/models/auth/shopping/product.rb +3 -2
- data/app/views/auth/admin_create_users/search_results/_add_new_user.html.erb +3 -0
- data/app/views/auth/admin_create_users/search_results/_manage_user.html.erb +5 -0
- data/app/views/auth/images/_show.html.erb +16 -0
- data/app/views/auth/images/destroy.js.erb +1 -0
- data/app/views/auth/images/show.js.erb +1 -0
- data/app/views/auth/profiles/_admin_profile.html.erb +2 -0
- data/app/views/auth/profiles/_proxy_resource.html.erb +0 -5
- data/app/views/auth/profiles/search_results/_switch_to_user.html.erb +16 -0
- data/app/views/auth/profiles/set_proxy_resource.js.erb +6 -1
- data/app/views/auth/profiles/show.html.erb +14 -5
- data/app/views/auth/search/_search_result.html.erb +10 -4
- data/app/views/auth/search/authenticated_user_search.json +2 -2
- data/app/views/auth/search/authenticated_user_search_with_masking.json +15 -0
- data/app/views/auth/shopping/bar_codes/_barcode_input_field.html.erb +16 -0
- data/app/views/auth/shopping/bar_codes/_get_object_button.html.erb +21 -0
- data/app/views/auth/shopping/bar_codes/_scan.html.erb +12 -0
- data/app/views/auth/shopping/bar_codes/_show.html.erb +23 -0
- data/app/views/auth/shopping/bar_codes/_show.js.erb +16 -0
- data/app/views/auth/shopping/bar_codes/new.html.erb +3 -0
- data/app/views/auth/shopping/bar_codes/show.html.erb +1 -0
- data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_cart.html.erb +7 -0
- data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_wish_list.html.erb +3 -0
- data/app/views/auth/shopping/products/_create_from_product.html.erb +20 -0
- data/app/views/auth/shopping/products/search_results/_add_product.html.erb +3 -0
- data/app/views/auth/shopping/products/search_results/_edit_product.html.erb +3 -0
- data/app/views/layouts/auth/navbar/_acting_for_user.html.erb +19 -0
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/time_hash.rb +2 -2
- data/lib/assets/javascripts/bar_code.js +70 -18
- data/lib/assets/javascripts/leanModal.js +3 -2
- data/lib/assets/javascripts/search.js +5 -2
- data/lib/assets/javascripts/spinner.js +1 -1
- data/lib/auth/engine.rb +20 -0
- data/lib/auth/rails/routes.rb +7 -11
- data/lib/auth/search/main.rb +10 -2
- data/lib/auth/version.rb +1 -1
- data/spec/dummy/app/assets/time_hashes.json +1 -1
- data/spec/dummy/app/models/shopping/cart.rb +9 -0
- data/spec/dummy/app/models/shopping/cart_item.rb +9 -11
- data/spec/dummy/app/models/shopping/personality.rb +9 -0
- data/spec/dummy/app/models/shopping/place.rb +9 -0
- data/spec/dummy/app/models/shopping/product.rb +9 -6
- data/spec/dummy/app/models/user.rb +10 -0
- data/spec/dummy/app/views/layouts/application.html.erb +1 -1
- data/spec/dummy/config/initializers/preinitializer.rb +1 -1
- data/spec/dummy/log/development.log +183 -0
- data/spec/dummy/log/test.log +114543 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-0/-0FH84k5qbcOcO7q6dItcLRdSEnxx6MiCDvyxJsvkQo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-7/-7DKhsuoLBdupVXPF_k7zNtDr__mo_87te9AIqFW_K4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JN5Wc6kQppvZw6Tgx5MfEy_WVMIgeq4CqCqLFtnDlU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JvQJpqOMZZ5p6yK32KC_te1l8JlmG7K5OWX8wSl1M4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-c/-cxwoSAB71cYtGi2Mt0eCvTkBl4YiVY3TN2lJVwRMTc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-k/-kQ2EH8AeUK01fXF7oW_ag1eKQEaOOGbaIJ-PFSk5TE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-z/-zgfq4oAUXx-FshRXKVd4szl6sl6t-SA7rUDj6ngwfs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/01/01RN47Wk75g4hWKB9KjAujvSZjX9FJvhcipI6JenujM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0Y/0YeFekbBzPfCnVzsje8CrWY89XR2shtu1ke8Nu6vSzo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/16/16tPLrXtFSyIZDbcNkP-IpJFvN3ulDVpJYnz0b3g7NI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/19/19gI3__zyZzQ7LQeozis7e1AzgNM8GZ4hDrg_8UQaZ4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FGPi9nwerl2xqQzN3MLkyKSPzpbnrhRQ9VinGBcs0E.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FvBFD3jV2Df9U2Y7eaZ0lQTJJ18_EadeZ2WxB93Mtg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1Z/1Z79eTYT4t733p8ELTIx1wetBTnyxNNk3wIMFXloO1M.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1_/1_mWw6lknf4ASpsYczaGoa4GLpZKs2yL_0--tv2-Fi4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2d/2dLMthgCTTaOlqI-hExDdUY_0ah5imocMIky_TQf7Bo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XDiUnSRh49k1EFokrHBk_3Hs_AHpF6vyA4tAUQj5xE.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XZhRWfxpEESCszP6I6YCRrMrMztS8yFpH8TwBtnsYs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3u/3uyLmt6fQCxieft1OlSxDMqA6BdmqwG787MpgfvjrNE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4P/4PCTIkeJVNId70b3SwoBz4BnDvdnqQJvU2FbROHRbVQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4f/4fs1GL0KugXi1v9nB4hlhhUZxpSoynpykzOy0UhnRy8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4p/4p3xQC4pcOyDno3fhpxSy4goO0uuZpW-4c3ZnQU0k_Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4s/4sckZ0TedyVm0i70xpE5IVpFE4hrt_WmBNNlC-qLM2M.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/51/51f1FDIFZ2SGhyQ6WuNdRelZQceJIb_5LDOSiQ7QkyU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5H/5HKrnfHvwweeybIfbvntPxgdhl3bvFVxtBobE0wNr9M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5_/5_rNjsUQIG1kvx0Ea14xFiVUNZw-fQiCKFADtCUISl8.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5h/5hRRBO2bk0pdN92ehqH4rgT-gyufccm9SzEajBx4j4w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5q/5qnoYyiLapR2HyyDv7CTXiMk4oWDFmYvvA6pRbM0Jjg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5u/5u7YTIbDiB_1yihXZcIpRTigKdITuUBCtCXjdeDLbQQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6N/6NWh4Lq6KngobEaZUmcIXQ7aRF8Epb-t04JDYzkKBnY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6R/6RgJ9I_dgmxqLtTOcWY9RnQ0hbm2bpeHVIPRTf0lStE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6q/6qUF4H480zGnNqgMSfnXgiUXAeNMbUuAgYbXyb4iUzg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6s/6sn6iDWCCFqtxL5QB58dZOYcC3wxXaVAxLRbj0ZHJss.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7e/7em68JtxqHgoeWlKhWFwQulaZjC7p4CS6wlJzkz9GQ4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7p/7p1SrKUS7nrrFrWkVlPMIFF9H9tmozMLbvKwdZSuUYI.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/88/88cOdcip_WVCkMmcVXscvLrCOkUZY6UN78kDZ7WwU9M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8G/8GtUCAGcgJ4teJtXj5Ernjc2oR146ipR58e9D8SmD0o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OJIxJ5B_M1zJumiXlmOnF5sM0KAY2rDg65zAADX8h8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OQefGugbgbcTfJDnbbciNA-03xrjL_ivQZaTx6jxYA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8i/8i7yma4r59iJZNZqxMWHFy5PPmFvYeRRV8YyAb-pDsM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8m/8mCKdXYbETWcbVlm9r5S4DH_7NdmUWk0xvQpG1NfnKI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/95/95IhppspBdHbJte9Eb-TFJyul3tMedfwa7PCnzYvtUw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9U/9Un3o6p8MK8rQLqzenk1pB_7hXQFh8oRV2e9H0gvVEE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9n/9ndgTI40F07w8FjASG_cWEWvFc-WFcAnQ0RTHKffLs0.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9o8JxdyqOsc4w86Kf7lJ3_sPDgaz8jn67FjJdDPhDkI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9x/9xDDSh_d9R_KIIGZRTcuBWS8bGETaC_Bf_SfWRRek0w.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AP/AP8CMZvWwmd-jMLMU5sL0okrcR5WUB0YCEh3AuALxiE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al9KSjn0Oy17EA5EUfl2Iu6WMk0I9Xh_ayWe9vF8_HQ.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/An/AnzKitD9vM6_RjoLfJYBOh2jBnN_qdGB1u2EJiCCRoc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Au/AuF_Lg8psMkag-Ebg2QLqzwaoKLe0m7I7BZ_SEvLjmk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/Az8kOr4kewFFaqsiiQE0WYSJ59i9wo9_z_F1TY9F7M8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/AzjCF36ZnCtfao-Xf_39oM5Iqw_-WxScCsNjdwTzkDg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B3/B3Cy78DXJF2UnoGhRjHucuqZDrClomUgdGvqtBbjWgo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BL/BLDosj0uYMnLDG_bKFv9uDRMQvYC-TqPXqt0LWDiHJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSbNP_jWCJotqEhogYhxJWnVd8eNlQU5M0_ICj5vphs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bd/BdDviGeLCnTSYiQXIcujXrRaHo6H0MR4-knE2YeeCgg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COnlHVpKyQNDJUEMrL03OCrulthhbMGrK5LnzfqxKzc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COog0ADFfcxxSQGirlDPnIplRoK0YS1sX_zi0EI_jLM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CX/CXWRi2s11uUfdM1WvjHt1MZgUR2ZOZy8kIkxDXGgLew.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D2/D2rHtyO5uRykEy1sDjURZRsMFNRnctr_a4-sN6N_k3s.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DL/DLkERcNQXfP_jrGt04K3gIoyAQUwRAhsa8CGBbHeyr8.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DR/DRUjSXaqukziuV073e2FWRUrvpczn174K8tnKOVnjCo.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dl/DlKAR44lUzqNCP74OxzxIKtHkZ8RxvRFNSHCSDAD0dg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dx/Dx7LY1s3Kt1d0QNsJS7QbwHBQXDat_Tejg6sFqggwpg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E1/E1sjzr7XlSJWVjX4wWthYeyuomO5VUcCix93RBDloFw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EU/EU_udYe_J7iEcJIrPz3ryODOZ324JYpOQgZz6Bmr3NY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EW/EW0mRGtnT3pbtHOhXnmfGFACMcet5Ga3wX7LvUZSub4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EY/EYtmNrxNv87V8eN1qeSFVNgVV-kJy6OybUTRAuQqbJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhDV9llU_Uji55N2N5hSisrVZB3F7ApMRgcaVy6DdSE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhjkY9IvaTEQL2wcumd5kltyaR7e-C6rBM8JWCVXPTU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ei/Ei5n29SVP8SdmUMAMaA0umz86XuCUBuLpZ0BNQuQccs.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F-/F-iArOgmgGF6z7buN7lXd0PD67cLzUqAyHI_dg5Ir-M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FR/FR7UgZsBXuOsZrTFw1Xbx07dvYP7DQ7HbJv0wrz4hq0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G6/G64cowLHOfM_Yrt8O7KSbFiOMRqTgfEQm1PPxAQhbAg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G9/G9GcQSjBnO1nXjttmifoSI6ITmGuq7IwKnZBRYNRa8Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GM/GMONcamN3RqysGKy4uYJgymCpqehQhPzSIm0464hTGw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gf/GfuRghtVELfVYMujLNC574fvyKsMJzdWTtbEQlH7X6Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H7/H7MvptNvTitndXYMJeMFbOLKPfS5xVM4KK16q3rWRf8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HE/HEMtPwPwyE2DNUimuj0RWr9XjDw566AWGpPxO-q44qI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HT/HTDa4jVpwYRkpWV8TUTUHnOXUZlDxlNvENOx9HDpt_A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hk/Hk4rKlg0YdT2T70kfxEdLJnLqt6-L_368Ls0wL_eUfk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHdTxEINLD9EP_9WBZtShsz0L4wyvHvmWajj3bS0JO4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/II/IIhHECBYzW6R7KaHyb0vvWJRLzmrr2eRu2gYR23zXII.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ih/Ihlbo_G-ptum1z1TUDzAJtCaXb5dcjawZ_JC_6IV8Ck.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ij/IjA5E1ckNNxW7LS_WlHj3kq6rCzNkQm4GJXKbz16OH8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iu/IuKXt-cdB0MWFj7mqA38Bor_psTeajaMBFLmvDVMoBg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J0/J0VM7NzIgMpeH6e1g-iV1jukVtOeuJaEJBD8fwv-hJc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JO/JOw5gbzb3UZHNCcvfkgx62jvLeTOtTeJr2n-KkMAje0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jh2yzmSNK2NI9-ZN_AUECyg0NmxfsW0BrXDpAu8Q0Sc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jk/JkTWRfXEtbewdT9C_84ZUCKfOJgW8vAYojqbIakKuUM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jo/JoYrlbw390oHMUGn2ukrbkCBic7MwB6h0xh45pDUZ-o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jw/JwL3nARIMhyKb8g84VXSKO065zMFWQ5_Hpo1yKLmgBU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-Z1865camwlbx6a_H9hvyUUNY5MvULTQRPGNNIN7O4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdjXvRD1FkAOT5gHV5oggXZChzNk7YulQwZcHQXIZRg.cache +5 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kg/Kg29pENl85d6oqEm08etqgE0i_wBEOgHSrC8RNQgxH0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kn/KnApnugr93z2u-bP7o4MoBYpzMfTsQCkE0BfaGmFh1M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kt/Ktn9Bwh3ABbc0iZw75mn8jHdQ-c2wrSOOwr7bgKec2M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L-/L-9gOP-Eu8WWrqHhquHTuF-FYNyqPW_XADPX3zHfbA4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LX/LXdz5pGMYqMa6LDg6Cd1tUlmH5YsGjx8qWmEUw10p4s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/La/LaLV7_h7bNXlIUdOYVJOJjuimbOMcNM6Lk2AQfHZj5k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbpuXJvUMRSl-rkNmtrS76DOvfjCCL7sPX0Dik1Jj20.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lo/Lox5RGiMyRaI-gtEuR734T6Yxs3SO8CYVkpLobvm6Ec.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ML/MLGXPOc_o7QJhMTPIl-dolby9B6HGGATmZfvQUmKE9g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mr/Mr2unC__UmyhRSGG3ZJT5qgD_hLYsJZcby3qcYkghJQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mv/MveaXKvyHsP7lUjRxWRNMfujogq7KoFeXny94FaZnMA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mz/MzRPdnRytqqYhJPaFID_20uq3exdwqTkj_JaNSeaIrA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N-/N-efI87sYEJx9N5TgWUNVb9DZhfdxLIayZwS1QyrBBI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N1/N1Ge-O_OfxqfdKJ8hS-hCM1m2PpxNrluFlt0h4T-ViM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NA/NA1MvZyw6XbQUarkgAWb2vb2tED9CbMfX6bVAEOaby4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/O3/O3YH4rYrH4zTrSfm8r9yEjsegPVRCq-EPPgN9kVKt98.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OG/OGKM_vNfjdFZ8-_i9xxsqvL9JKeY8ZeB0crBJ5mnxbM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oa/OaT2un4nlNDSN4mabpQGtzAZD_MhRbyuiW2JQ2O4AQQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYY-CX9a8_IYn3rdKI_zP4DaXsicVSsnDnHSNPWiDU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P2/P20MUUHVNDibXLvOGOQXPtteMwoQE9ZdPOWt6E-8AXo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8F3AFFdVIHJ1wRbNKIsKfDLRej3I46QD4ZrK2pvdH8.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PM/PMj3Wq0fic3iWDi9IWDFNRkrS6OZfFX9CPFql0BEKzI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PS/PSD-YJcPLEoTyXjJwxPwUH1adb_OEG6-EVhYFavC9Y8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pp/PpzbEkwo1VQQqREU6mIpmE91gLIWhbSaKvZAzHmRzT4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pz/PzYpfB-Mt_GZoI1BoK5JTEtoMNYz5eRyWjrqQ0Jwbrc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QA/QAtOVdWly1g9_legRdZ1TiU1wt9exnZClfFs1KFInHw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qm/Qm0bT-XviwzpPFa1cH4PKQlarnMXVAYLEhEHAMQfS0M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R-/R-P6hKBc_Kiub4PGDIV6GLWVPWKG5Hkb4pMibGZ4_mQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8wQU1MrYoCOeoLDkm0JCDvph7JSzV4qMnnfQQHWJ_0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RV/RVEELwrJy-0osxsK6bOgrdv0BJMXVeV0Kj1JU1ufudo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ro69Fy-gnadW6JbSAyOUEhPcix9r3dsDlAbMbmsvO9w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9VEgZtqRTQ01SX2jqwEmScpSkKiR6K6ps4b-47Yr1Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SJ/SJF1Y7x3bL3Lns0svNhFk_d4TC8gD1GbBFCIa6SKE5g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SWX0OIIfUckgfme5kpkBIgwgFSzKmarqkqsot0WKiEY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TF/TFaZrdlbQz3NOtg2lMK89mjniknuNuNyi5MAyAAAihQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tf/Tf2bgX5zezBb7fVsJ0UWYnQjW7LdkJVAb7g4PR5SLLo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U9/U90dV2vsbo5vLV-5nrMkYT1KZihPlwFGwtCpnmWUnkw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UA/UAIqUPfpgzUhqoW8Rpu-gyok0pe2qyGCmDZ75Ce8E1w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UF/UF7abP4ooRBx6NIfQ3QY-qUwEkD9FDzQqw84LtV251s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uj/UjX8tjTZ-d5_6rIWttVCX-9zs45IlzjMl9w8jkIv5B4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Um/UmQ-TyyaNDZxmO_pyhLdwHNew2KSxQ6jWT9MtngyqrY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ut/UtN8NDRYbBYRbFtmdWKRK6rTi4gEFbOg8DvQ4cH7S7g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uv/UvqiGDl3Je-eTM9pIFPThYrDwUvoNnoodzISPqx3urk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VD/VDcsfdncrgnBziuB6ube7SE7djY03TqwY1IukD_TN7Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTEXyTvUoTTHn_xvcwk_W3pBeA77AFVfMgdcEixTUwY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VV9jOPgrtgb0lMap4TpHaQGCX5ABH7jZS77u8CA_HWg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VZ/VZ-BzU4prW2vUnpfToRif74ofzzuXEMrLsM78MMFqXM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W6/W6SS3z2NFrVIRIAHNlkS5HjKsqISu52qRQ-CLtMVu6c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGLNLZMgDpHpL_77HvgUU4OLdXxlgxrFnDNtxvAH8UU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ws/WsVVpxbu--lln_NCf67Z2SL1ZFzAYK3oUKs58bs9Lng.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/WyuMagtVlhoZnbDJ1XWdzEZ5nEc3TtAakFgn3GtUlRw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0TyY3kU86SBdTp0_SP0Dk_7A_6t2P95BfblJp21nL8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0clyU7eLOTqHoVL8gmWxsUZtKT2sXmrR5RcEQKI61k.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X3/X3smAVji-ukCfsZEDAxoOZLpw8mT4Mj-fAbNVG9-9bQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKkVQq7H-pGpBPALp_h89EWR48ZkGLlIejmAdKCoN9c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xf/Xf2mUbhZ10q_EATP_OsSnLhGXGHw4eC9XdiAdTnJ74c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xp/Xp2pCnEav3eX2i1dS8VwmKs841_3_A4tCrEKFN_4mB0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y-/Y-SMBXniQNM_PK59g6qkh3Rs7vutjQPID8cPZYUyvc8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y6/Y6zCPRDYjMX91hrNtDDz50vO3yX5zn4_6xTguk_s_4g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YZ/YZ2FiKO-bbueEZ9CsbkJp3EFqkuwboncJhgKPeyRV4Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yq/YqAdyNJ-WDhKGz9PNesXYBSfjIH6516EdP9_2Qf1BnU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yw/YwQziXwjTffRGAoRXdMaBeiQLd8LYcVIWuO344bgy3c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Z7/Z7FRIezQTNsL3aMk8NTXpPXzR7pEVVbPNHRTdohmpDw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZZ/ZZiJaLJKT2joy06fP2oWL9qzj_sRH-H1tItfKcz2JW0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zb/ZbhOpgGTFv1aWxq09Ry2MiXqW11OTYAoXvFLPyF0zzY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zl/Zl-FTV4vKa2r3nBU7NRBdlkyRgcIo7NOyqsfaqdX_fg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/ZpIypz91h5jOpIv5_XWneCig0eXbO5hjU-1E8lk0L0c.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/Zpo6cFyzVk3NjXX0p68zdmGprgxAX_ZHnNzvJY6ailg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_G/_GnUMQowqX9t3laGvl0HnAxZF2Vhf0sq7-oURM0wcko.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_O/_O_7M8DxgHDGuIwgUtHu0Lc0mKcY8R5kxUxufQ97uX8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/__/__iX6Xzd89n2HuWT3iV4OrHtr8Qkn_Mn9hNWlWKneS4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_o/_oxoPWAnCwMi7IIf6T6dbEYFq3VKRvMfszDCgD0aPyM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/a9/a91uMBM_EHoG9dpZfGzpn7yE8kmrsX0VjOhWT1QskaE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aH/aHVHr_-0u4GYkc7Jj2NHqoe39XO3ajwlxFXQuYK_6U8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLiHncFxecbABwNN02qPqA_83asIyWD3VseIFDc9G04.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aP/aPGhkB2WKuHyPS7Sevt1IEJx0wDJxfXe1ruloXqj3xk.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ae/aeggiw7BQrQEDe_h9KrnAKMR-cLCOwguVWnbA4t7RDI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ar/arjoC4qFoPftvjtnTFvVOcqgyMTEO3R7eZfUBlCD2tQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bA/bAxW4suoIwrYp_k94dRFVbm2hReYVmuPmC2zMBfvJc8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bH/bHvyfESjIDel6qhGMnn7WQqdoNXoXBEHGqe6xaPpyLk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bK/bKWcVsqtCUYRj-dQ71E6Zv6VWGnb16tnJxXGQ_nQ2H8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bV/bVVKMfnewO_Cw5cF4DuWLGesLrgquE6waHtskIGuc4o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bg/bgJeD0vSue1KUNM2KWqqSCTroUqhxlReXxzTmTOruxg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bq/bqc2uPWm4pGI7w9V5UTKsOJNWo37Cp3H2n8zfUa2oI4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cT/cTO6k7QA5M17ZMkAffV0ovTZiBXhT3VseIrOM1mBCs8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cY/cYK6npQK2KyeCzT46f6dwDF47WuLzAllkdR0ppOrkno.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d6/d6MwJNJNxNFBkdXmYs_KvTpl1AS_VRd3tfEYNDmb2MM.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/db/dbGJxjhVLPsmOZwdy_nsIdlFbXeARv23LF7R7HE7AbA.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/do/doQ0zNGC703aNZz7U4-e7z7ZXn4QyE64ue9z0_UU_58.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dt3vYLBhkenGITkPM7hggTYSZ9Hczn1N-WDFbFvGtb8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dv/dvCaWZlq_sdjkF_n9x4vzz1pn8wnFCfYRirZppk3Z9s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e7/e72aQlUn5CdiF0uDsIyuUXiO7WBe9TYk4k7jLmFPN-s.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eL/eLKgQlMwf_H5A0vmly3GTNk49y8YtPV4hchufXVaCAA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUSALCij0-yOA98jJNYVgFhMfa_g9zrJGgGrqSPMNOE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eY4_uLXSqnPVEpB1HuS1W_OXHHms0pInZYoefPvW9t0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fE/fEkHgB81i850dFiDLA-P41dzG7lzwscPfbEkn7xzBqI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fX/fXTENvNKMpfQV-32mpv0geVR4aYDdU2ImdLVu382RWc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fx/fxKS5cKjNaBTqhsiLrQBnUHwIcET_TjiQkZvcuDSqFM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g1/g1QcK14XjciA06BjnzcyJedMlbZDV8GtpMPMpDoJ_D8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gN/gN3fIJJNplV9pq-YkQCSKwGtQ4H_JtNrBkWtKzZzdjA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gs/gsdTj_I53MqRV9SgY7YcukVGxAcOhrNBajAbBBJtgm4.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gz/gz9XMd1uQwG02m-0et5AwJeE6DpmAOTNj-FgkXfw9PY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h5/h5o0be8vpn_GFYP1jmOvODXBI6GpPxfLPzdzbu2A8R8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hM/hM29fgLy6zOyClGR9oUlM-vriwUnBZ3ENjM_1FShFj0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hh/hhNmdTfVeFvrSn9CamPVmpsxNS7URxFj1ohmNXOW8jA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iA/iA1lfqJxNFLKFbXNgUxFyE_uyPQALWH8yftLiPABhAk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iy/iy5i5tFHzesBHcv_hzO9VSwlALBRNJtKqW3rzcUUVfs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jA/jAzwo-XbTDn_mb6gbd2hvQFdB6IHcwlsrSI61jMFRu8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jG/jGHmiJ0efPNx91nEHDL8zBy8A_3GAb6TNKCsumIxMrc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jN/jNB7bLvZDDgxEJ_aot5rRrTN522lDkV6rqfjpkHs34o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jY/jYIoBdBuCwWF0O3ZLZ_EM4w3zGd0YwfjUo1wQ6Hk_jw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jl/jlO2h1zPkO-NwYpMj7YVvbgoFwRaZVi74w-hYlzaq7E.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jx/jxImfB_67hcaN57hzR-IPAEv5ubIsQkfWmfK_CsytAw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kR/kR9ffWXZJsevw9pRleOgcr8pz_b4cX8VqpoVJziGP08.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kb/kbQd6EO8oXIIwwsb4-N_3QzKr0c0gVc70-x8cTHGg7k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l0/l0jQk5kPfmG2Um5fNC7YyixCMowwMaCuMBWVoBN4vcc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lH/lHYhwn18H2WfEhHHt2MgLxWFbUSjTZNHCP_z8TzYWhk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmDtF24A1oDE4KDlhClswZcy-oE971KdFw1_2LsqrYc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmT75XgXB63O5BEdE3m1rUMJggEyXHS7NEjv_Xcamf8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m2/m2bWBtIVM9G04E_j5Y1PoqBs0JUi0F7wSt_EvaaJ0YA.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m9/m9caH9jq8YVbDxqaDFU2qPGFCA8QzRAbrM-m_N612rk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mA/mAkIP0ixRggjgv0ed1oDSByEf5ldee3HPDs6biQDBG0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mC/mCNBQdFEOLMGILmOJ9Pdrh4Rq8w_ffW-BhFukaDrCDw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mD/mDrzK83Mv14TV-9pCfS9oQcDShVXUn78mCV722HcUh8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mS/mSnLUa5l014-UgliBXGIHIZC1prxoOKofJbsj2sCBRE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mU/mUA-YJ9L2yS2PLx0FZvs9bldWItm_fJ41z2i7eEU9n8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/me/meNq1c2Ux0zYwqV1yg5T058zxFQ7BAyVqzWjbJUQ7-0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ng/ng-yExNasiyVV3qEjC6hdXxyCJcIzKh99lCCgYftkb0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nh/nhXndES7hwXIbsUG1fIqnNOs9H0iOsFH16ruuVjhjT0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nl/nlr8DeeQYRxoxJMWJBxg5TCR5jmL9hudYAGLgeMyZKE.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/np/npScNprHGrz4ZbVC8rgR94Ba8XY5FFB6-Xe7PXWRtr8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o-/o-aAn-G67pIxAaTUZuMvKFo1CedVzW9074NWHXyv6co.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oA6uToU4uvloVCwdiAKR-A8gH07qUO_Fw71BIFr8oOk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oACljI4tPgKAxbx0yS9MCF9h463HW7iacP0ZVHMtOJQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_yQ4ys9tqU8fvuSWSOYuWAaQIPkJoBlYSPV69Lag6w.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oj/ojtV124ntJUZXjJmJDBZQtTlTU1WAFNDP4eAdQ2uYhc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/om/omi8Qenrtp3NJkZWBLrBCYgsKSkb50JHMsGYF0kMsfY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7ycjdV_4JeHQfXQz054I1rzH2KG6qFl3RFGjPr8e2I.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pETf6QxnSG7a4CvbVRha9eQ-DG9ZaZjNWBlCjHJ7Mh4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pK/pKBNPsUYs8eweHKaWGgVFQEIpB8R4LZy2gGx82jvZ2A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkSt9DiSQNeoWbdCFjKARchGczKSlGnlq2tk4sRHGl0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q9/q9RgoV0PuVwQOOCdlt8z76egko-gThe0NIZRNJ7Vb8g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qI/qI2emnzqHyl9ZOJxm4FkD25KQXXq4jE2m0hry2BLlvE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qM/qMN4jfYXHrhlIqCS9VjreBGlWhvaZKK1c4aLux4Myb0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQHGSJufUk5KZIUb_vR0RUtxfx0ddvyFiFTn3umUXSE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/qlSEBPTiGY1jz6bXssCmY--dFFJ_ejUfXZ6wDao8eGE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qp/qpml4e-70MECbnFjH9p2a0GPu_Vs4AMQqUyCwLNb00g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rE/rEWpl1AjQCLMdTcBJFp2KnwQ2XvWMlZ3fvJpbKcVHFc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rH/rHg5QaB0HvhIvuf3A530JZnAklQ2pIvI63VjwnHGFjE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rj/rjYHromYrCChcwPZfMIpJR5lH1v6AV4rFJ7PSpbmaRs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rk/rkQrgOdLddxqSCHuuxJ2JiioX_mFGyRh9i2bbYmWUuc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ry/rytY_Me7_DHvkuv3QVK6EghzfZGPIFqA3c-TCEYML2k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s9/s9SjWUk4UAt4reHYFo6HUET6atAbvuzJx7jFkFzBImk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/t1/t1ExmbhOJG5KqGz-Vy75ivtHe2bJmXlsRBK3-pmJy84.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tE/tEH8M7eQdOfPeisqPSQ4lj-q8XDMFAhWNXkDLWE75c8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tr/trCq7BhEHskeDpAD6mednS1kRw8S3HDqwXgPTdUl9U8.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u6/u6tVe0hsmtnXDuqgzg5jZvaEmCZFL4sgGePf0or0R6Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWZCdrJIObhls-KkZZvQocyeDM0XbJDae-HmnBBA5J8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uY/uYYzv5Mfd8qRUalE9i8llXbnvhzj-7mN5xO9dHrKPIo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uZ/uZXV7w43ovUs_9uVjX1p9gZQ5Fsw-MRRVTeZMcEx0dM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uc/uckgWS0BcCc6LNAFlF7PElu4xSY8W4syiG8A2HNXQAY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ud/udiGVbD0CReFDUTw71vBR2mgCFU8Q6kaG6UdVL4yT7c.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uk/ukBqlR6stAs77HT4RK2EWYBIImXBMh4nBX-cTGc9KWQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uoDesdHy_rZZLzkR-dDs3fEEjg9NP94xaBMFoDkjB88.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uowxYUAV2RR9N3pfi_QyInIDyJfFdx0t9XbKszTnF2Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v5/v56UY4h_wtUEkSk217QvUGhLmMRwfFxUp7-OGLFpSWc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vN/vNulvOY1ZW1InlcztpORT8uhYn7jm-czph0IoRG4ziA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vZ/vZIA-1XhCjniB8BUpZbXiAu9iMRvS8S4ZhjhoFD69Jg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w1/w1Gjto-nSo5bbwhqv__siTCg-BlCBKsDGAfIm3jVOMk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w3/w3GO9wDvtd1y3U8_5qBRTyyAZMudF_CGwEODvjyMLWw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4gJNAGhrqxs0B4MwhyC_ir8k__4On1dFcPc2DpEusY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wE/wEoQYuJaRPsMw9VmtT3GbtfTi7-HZlHSCV6FpH4DCKM.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wQ/wQM_oGR5bpeyVlk8z7JUAdb_quHniOqqG3bdt64sqik.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wZ/wZteNRroGeTHkmRZzWi4DLcbjdtN9mgBEU7plqZdH-g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7bkbnePbYzVM7ZfNBf8GxyVf7m_ZL3cAjLd2NEhpNs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xC/xCIJq25fTm8VFaoVAx_47ChkOHhdZw5Z756uF8XCbXc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xD/xDVQfe0cmwEeb-NqJAGwfauOMRqTEjKDMWuHYEgEegI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xF/xFKzR2zX4XI1wVSD6T-YMTXVZRjLmAShKEqk1wsP8kg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXWr5QK8YRUjPVX4IC-xdCVtgHMRNQp27mYcmlTJtUw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x_/x_xwdioU55LPgMkEBfJmj0kQWn0Fqm7N0eAqV3yxiXM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yZ/yZ8qSfZNzxUtATA9c_-yYW0lP1iVStbrIbOuGbfL9ZE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9geVSdQW1rTKOVQu_EELjycarXOA2oXjN13plTezkM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zN/zN-py56vYO3TcsXz8GyNbL13xUdTND-N13rxoSjtdPY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zj/zjypYsPiWG45GTxGIl_C9B31lx8tIUhrs87LPKxiPxU.cache +1 -0
- data/spec/requests/search/search_request_spec.rb +116 -23
- data/spec/requests/shopping/cart_request_spec.rb +1 -1
- data/spec/requests/shopping/product_request_spec.rb +281 -61
- data/{app/views/auth/images/_show.js.erb → spec/requests/work/procedure_request_spec.rb} +0 -0
- data/spec/support/sign_in_support.rb +8 -11
- metadata +589 -12
- data/app/models/auth/concerns/search/autocompleted_concern.rb +0 -139
- data/app/views/auth/images/_form.html.erb +0 -17
- data/app/views/auth/images/edit.html.erb +0 -6
- data/app/views/auth/images/index.html.erb +0 -25
- data/app/views/auth/images/new.html.erb +0 -5
- data/app/views/auth/images/show.html.erb +0 -21
- data/lib/assets/javascripts/data.js +0 -126
@@ -3,27 +3,53 @@ module Auth::Concerns::Shopping::BarCodeConcern
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
|
6
|
+
attr_accessor :bar_code_tag
|
7
7
|
attr_accessor :remove_bar_code
|
8
8
|
|
9
|
-
|
9
|
+
after_find do |document|
|
10
|
+
## look for a barcode
|
11
|
+
unless document.bar_code_tag
|
12
|
+
bar_codes = Auth::Shopping::BarCode.where(:assigned_to_object_id => document.id.to_s, :assigned_to_object_class => document.class.name)
|
13
|
+
if bar_codes.size == 1
|
14
|
+
document.bar_code_tag = bar_codes.first.bar_code_tag
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
10
19
|
before_validation do |document|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
20
|
+
=begin
|
21
|
+
## if the tag has changed, and if it was not nil
|
22
|
+
if document.bar_code_tag_changed? && !document.bar_code_tag_was.nil?
|
23
|
+
## it will relieve the original barcode from this object
|
24
|
+
## that barcode will now no longer be assigned to anything,
|
25
|
+
## and this new barcode will be saved, as long as that clear operation was successfu
|
26
|
+
if Auth::Shopping::BarCode.clear_object(document.id.to_s) == false
|
27
|
+
document.errors.add(:bar_code_tag,"could not clear the barcode tag. Please try again later")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
=end
|
31
|
+
if document.remove_bar_code == "1"
|
32
|
+
if Auth::Shopping::BarCode.clear_object(document.id.to_s) == false
|
33
|
+
document.errors.add(:bar_code_tag,"could not clear the barcode tag. Please try again later")
|
34
|
+
end
|
15
35
|
end
|
16
36
|
end
|
17
37
|
|
18
38
|
## do this after_save, so that at the minimum this bar_code_tag cannot be used again in this collection.
|
39
|
+
## this has to be done before_save ?
|
40
|
+
## if we do it before_save ?
|
19
41
|
after_save do |document|
|
20
|
-
|
42
|
+
|
43
|
+
unless document.bar_code_tag.nil?
|
21
44
|
|
45
|
+
if bar_code_object = Auth::Shopping::BarCode.upsert_and_assign_object(self)
|
22
46
|
|
47
|
+
else
|
48
|
+
document.errors.add(:bar_code_tag,"the bar code tag could not be persisted")
|
49
|
+
end
|
23
50
|
|
24
51
|
end
|
25
52
|
end
|
26
53
|
end
|
27
|
-
end
|
28
54
|
|
29
|
-
|
55
|
+
end
|
@@ -9,6 +9,25 @@ module Auth::Concerns::Shopping::CartConcern
|
|
9
9
|
|
10
10
|
|
11
11
|
included do
|
12
|
+
|
13
|
+
###########################################################
|
14
|
+
##
|
15
|
+
##
|
16
|
+
## STATE MACHINE BEGINS.
|
17
|
+
##
|
18
|
+
##
|
19
|
+
##########################################################
|
20
|
+
|
21
|
+
field :payment_stage, type: String
|
22
|
+
|
23
|
+
##########################################################
|
24
|
+
##
|
25
|
+
##
|
26
|
+
## STATE MACHINE ENDS.
|
27
|
+
##
|
28
|
+
##
|
29
|
+
##########################################################
|
30
|
+
|
12
31
|
field :name, type: String
|
13
32
|
field :notes, type: String
|
14
33
|
|
@@ -54,6 +73,8 @@ module Auth::Concerns::Shopping::CartConcern
|
|
54
73
|
## the discount object id, passed in so that it can be rendered in the show_cart action where we provide a link to create a payment.
|
55
74
|
field :discount_id, type: String
|
56
75
|
|
76
|
+
field :will_pay_at_step, type: String
|
77
|
+
|
57
78
|
attr_accessor :discount
|
58
79
|
|
59
80
|
attr_accessor :personality
|
@@ -81,7 +102,7 @@ module Auth::Concerns::Shopping::CartConcern
|
|
81
102
|
index: Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_SETTINGS
|
82
103
|
},
|
83
104
|
mappings: {
|
84
|
-
|
105
|
+
"document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
|
85
106
|
}
|
86
107
|
}
|
87
108
|
}
|
@@ -112,7 +133,7 @@ module Auth::Concerns::Shopping::CartConcern
|
|
112
133
|
|
113
134
|
set_personality
|
114
135
|
|
115
|
-
|
136
|
+
|
116
137
|
|
117
138
|
end
|
118
139
|
|
@@ -318,9 +339,15 @@ module Auth::Concerns::Shopping::CartConcern
|
|
318
339
|
|
319
340
|
## and personality also has to be set here.
|
320
341
|
resp = (add_or_remove == 1) ? cart_item.set_cart_and_resource(self) : cart_item.unset_cart
|
321
|
-
|
322
|
-
#puts "unset cart is:#{resp.to_s}"
|
323
342
|
|
343
|
+
## add these to the autocomplete tags
|
344
|
+
if resp == true
|
345
|
+
if cart_item.parent_id
|
346
|
+
self.tags << cart_item.name unless self.tags.include? cart_item.name
|
347
|
+
else
|
348
|
+
self.tags.delete(cart_item.name)
|
349
|
+
end
|
350
|
+
end
|
324
351
|
|
325
352
|
resp
|
326
353
|
rescue Mongoid::Errors::DocumentNotFound => error
|
@@ -348,23 +375,93 @@ module Auth::Concerns::Shopping::CartConcern
|
|
348
375
|
## the current implementation returns true if all items have been fully paid for.
|
349
376
|
def can_create_discount_coupons?
|
350
377
|
#return (self.cart_items.select{|c| c.accepted.nil? || c.accepted == false}.size == 0)
|
351
|
-
puts "CAME TO CAN CREATE DISCOUNT COUPONS."
|
378
|
+
#puts "CAME TO CAN CREATE DISCOUNT COUPONS."
|
352
379
|
prepare_cart
|
353
|
-
|
354
380
|
self.cart_pending_balance == 0
|
355
381
|
|
356
382
|
end
|
357
383
|
|
358
384
|
def set_personality
|
359
|
-
|
360
|
-
|
385
|
+
#puts "personality id is : #{self.personality_id}"
|
386
|
+
return if self.personality_id.blank?
|
387
|
+
#puts "self personality id is: #{self.personality_id}"
|
361
388
|
self.personality = Auth.configuration.personality_class.constantize.find(self.personality_id)
|
389
|
+
#puts "self personality is: "
|
390
|
+
#puts self.personality.to_s
|
391
|
+
|
362
392
|
end
|
363
393
|
|
364
394
|
def set_place
|
365
|
-
return
|
366
|
-
puts "Self place id is: #{self.place_id}"
|
395
|
+
return if self.place_id.blank?
|
396
|
+
#puts "Self place id is: #{self.place_id}"
|
367
397
|
self.place = Auth.configuration.place_class.constantize.find(self.place_id)
|
368
398
|
end
|
369
399
|
|
400
|
+
##############################################################
|
401
|
+
##
|
402
|
+
##
|
403
|
+
## METHODS FOR AUTOCOMPLETE CONCERNS.
|
404
|
+
##
|
405
|
+
##
|
406
|
+
##############################################################
|
407
|
+
def set_primary_link
|
408
|
+
unless self.primary_link
|
409
|
+
self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.cart_class),self.id.to_s)
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
def set_autocomplete_tags
|
414
|
+
self.tags = [] if self.personality_id_changed?
|
415
|
+
if self.new_record?
|
416
|
+
self.tags << "Cart"
|
417
|
+
end
|
418
|
+
if self.personality_id
|
419
|
+
personality = Auth.configuration.personality_class.constantize.find(self.personality_id)
|
420
|
+
personality.add_info(self.tags)
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
def set_autocomplete_description
|
425
|
+
|
426
|
+
end
|
427
|
+
|
428
|
+
def set_secondary_links
|
429
|
+
|
430
|
+
end
|
431
|
+
|
432
|
+
|
433
|
+
###############################################################
|
434
|
+
##
|
435
|
+
##
|
436
|
+
## STATE MACHINE BEGINS.
|
437
|
+
##
|
438
|
+
##
|
439
|
+
###############################################################
|
440
|
+
## @param[Object] cart_item : the cart_item that needs to be added to this cart
|
441
|
+
## @return[Boolean] true/false : depending on whether
|
442
|
+
def can_accept_item?(cart_item)
|
443
|
+
return true
|
444
|
+
end
|
445
|
+
|
446
|
+
## @param[Object] cart_item : each cart item calls this method when : a) in cart_controller, after_create, b) in cart_controller after_update
|
447
|
+
## here it will check if the payment_stage has been satisfied or not, and then will decide to process the item further.
|
448
|
+
def can_process_item?(cart_item)
|
449
|
+
return true
|
450
|
+
end
|
451
|
+
|
452
|
+
def process_items
|
453
|
+
self.cart_items.each do |item|
|
454
|
+
item.process if can_process_item?(item)
|
455
|
+
end
|
456
|
+
end
|
457
|
+
###############################################################
|
458
|
+
##
|
459
|
+
##
|
460
|
+
## STATE MACHINE ENDS.
|
461
|
+
##
|
462
|
+
##
|
463
|
+
###############################################################
|
464
|
+
|
465
|
+
|
466
|
+
|
370
467
|
end
|
@@ -7,21 +7,18 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
7
7
|
|
8
8
|
include Auth::Concerns::Shopping::ProductConcern
|
9
9
|
|
10
|
-
|
11
|
-
|
12
10
|
included do
|
13
11
|
|
14
12
|
embeds_many :instructions, :class_name => "Auth::Work::Instruction", :as => :cart_item_instructions, :cascade_callbacks => true
|
15
13
|
|
16
|
-
|
17
|
-
|
18
14
|
INDEX_DEFINITION = {
|
15
|
+
index_name: Auth.configuration.brand_name.downcase,
|
19
16
|
index_options: {
|
20
17
|
settings: {
|
21
18
|
index: Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_SETTINGS
|
22
19
|
},
|
23
20
|
mappings: {
|
24
|
-
|
21
|
+
"document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
|
25
22
|
}
|
26
23
|
}
|
27
24
|
}
|
@@ -103,6 +100,9 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
103
100
|
end
|
104
101
|
end
|
105
102
|
|
103
|
+
## so when do we assign those?
|
104
|
+
## this is only possible if parent id on set on the cart_item
|
105
|
+
## then it should be set on the secondary links.
|
106
106
|
|
107
107
|
after_initialize do |document|
|
108
108
|
if document.new_record?
|
@@ -313,6 +313,10 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
313
313
|
def set_cart_and_resource(cart)
|
314
314
|
return true if self.parent_id
|
315
315
|
return false if (owner_matches(cart) == false)
|
316
|
+
unless cart.can_accept_item?(self)
|
317
|
+
self.errors.add(:parent_id, "the cart cannot accept this cart item, please add it to a new cart.")
|
318
|
+
return false
|
319
|
+
end
|
316
320
|
self.parent_id = cart.id.to_s
|
317
321
|
self.personality_id = cart.personality_id
|
318
322
|
self.place_id = cart.place_id
|
@@ -419,7 +423,7 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
419
423
|
end
|
420
424
|
|
421
425
|
def product_attributes_to_assign
|
422
|
-
["name","price","bundle_name","instructions","components"]
|
426
|
+
["name","price","bundle_name","product_code","instructions","components"]
|
423
427
|
end
|
424
428
|
|
425
429
|
## this is got by multiplying the price of the cart item by the minimum_acceptable at field.
|
@@ -428,9 +432,80 @@ module Auth::Concerns::Shopping::CartItemConcern
|
|
428
432
|
end
|
429
433
|
|
430
434
|
|
431
|
-
|
435
|
+
## here need to add this action links to the products.
|
436
|
+
## it is basically a form to add a cart item
|
437
|
+
## that should be added hereitself.
|
438
|
+
##
|
439
|
+
def set_secondary_links
|
440
|
+
|
441
|
+
unless self.secondary_links["Remove From Wish List"]
|
442
|
+
self.secondary_links["Remove From Wish List"] = {
|
443
|
+
:partial => "auth/shopping/cart_items/search_results/remove_item_from_wish_list.html.erb",
|
444
|
+
:instance_name_in_locals => "cart_item",
|
445
|
+
:other_locals => {}
|
446
|
+
}
|
447
|
+
end
|
448
|
+
|
449
|
+
unless self.secondary_links["Check Status"]
|
450
|
+
if self.parent_id
|
451
|
+
self.secondary_links["Check Status"] = {
|
452
|
+
:url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.cart_item_class),self.id.to_s)
|
453
|
+
}
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
unless self.secondary_links["Remove Item From Cart"]
|
458
|
+
self.secondary_links["Remove Item From Cart"] = {
|
459
|
+
:partial => "auth/shopping/cart_items/search_results/remove_item_from_cart.html.erb",
|
460
|
+
:instance_name_in_locals => "cart_item",
|
461
|
+
:other_locals => {}
|
462
|
+
}
|
463
|
+
end
|
464
|
+
|
465
|
+
## let me add for cart, personality and place as well.
|
466
|
+
unless self.secondary_links["See Other Items in Cart"]
|
467
|
+
if self.parent_id
|
468
|
+
self.secondary_links["See Other Items In Cart"] = {
|
469
|
+
:url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.cart_class),self.parent_id)
|
470
|
+
}
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
end
|
475
|
+
|
476
|
+
def set_autocomplete_tags
|
477
|
+
self.tags = []
|
478
|
+
self.tags << "item"
|
479
|
+
if self.personality_id
|
480
|
+
personality = Auth.configuration.personality_class.constantize.find(self.personality_id)
|
481
|
+
personality.add_info(self.tags)
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
def set_autocomplete_description
|
486
|
+
|
487
|
+
self.autocomplete_description = self.name + " - " + self.description
|
488
|
+
|
489
|
+
end
|
432
490
|
|
491
|
+
def set_primary_link
|
492
|
+
self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.cart_item_class),self.id.to_s)
|
493
|
+
end
|
433
494
|
|
495
|
+
###############################################################
|
496
|
+
##
|
497
|
+
##
|
498
|
+
## STATE MACHINE
|
499
|
+
##
|
500
|
+
##
|
501
|
+
###############################################################
|
502
|
+
## called from cart_concern ,and there is indirectly called from the cart_controller after_update, and after_create
|
503
|
+
## so i have to give a way to call refresh on the cart
|
504
|
+
## so that this method is indirectly called.
|
505
|
+
## override it in the app to do custom logic with the item
|
506
|
+
def process
|
507
|
+
|
508
|
+
end
|
434
509
|
=begin
|
435
510
|
## @param[String] req : the requirement from the definition. It consists of "*" wildcard, or a product id, or a definition address + product_id -> which is basically one of the output products of the definition. But here it will have the product id, not the self id.
|
436
511
|
## it has to be the product id.
|
@@ -44,7 +44,9 @@ module Auth::Concerns::Shopping::DiscountConcern
|
|
44
44
|
|
45
45
|
include Auth::Concerns::ChiefModelConcern
|
46
46
|
include Auth::Concerns::OwnerConcern
|
47
|
-
|
47
|
+
#include Auth::Concerns::EsConcern
|
48
|
+
|
49
|
+
|
48
50
|
included do
|
49
51
|
|
50
52
|
####################################################
|
@@ -379,10 +381,39 @@ module Auth::Concerns::Shopping::DiscountConcern
|
|
379
381
|
|
380
382
|
end
|
381
383
|
|
384
|
+
end
|
385
|
+
|
386
|
+
#######################################################
|
387
|
+
##
|
388
|
+
##
|
389
|
+
## AUTOCOMPLETE METHODS.
|
390
|
+
##
|
391
|
+
##
|
392
|
+
#######################################################
|
393
|
+
def set_primary_link
|
394
|
+
unless self.primary_link
|
395
|
+
self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.discount_class),self.id.to_s)
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
def set_autocomplete_tags
|
400
|
+
if self.new_record?
|
401
|
+
self.tags << "Discount"
|
402
|
+
self.tags << self.discount_amount if self.discount_amount
|
403
|
+
self.tags << self.discount_percentage if self.discount_percentage
|
404
|
+
## this needs more work.
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
def set_autocomplete_description
|
382
409
|
|
410
|
+
end
|
383
411
|
|
412
|
+
def set_secondary_links
|
413
|
+
|
384
414
|
end
|
385
415
|
|
416
|
+
|
386
417
|
#######################################################
|
387
418
|
##
|
388
419
|
##
|
@@ -0,0 +1,26 @@
|
|
1
|
+
1. PROCESS_ITEM
|
2
|
+
|
3
|
+
cart controller
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
create / update
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
calls cart#process_items(just before render)
|
14
|
+
calls cart#can_process_item?(item)
|
15
|
+
if true then
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
calls cart_item#process
|
21
|
+
|
22
|
+
|
23
|
+
======================================================================
|
24
|
+
|
25
|
+
2. when cart-item is given a parent_id to be saved, in the method set_resource_and_parent id, just before calling save,
|
26
|
+
called cart#can_accept_item, to check fi the cart is capable of accepting the item, saving goes forward only if this returns true.
|
@@ -174,8 +174,10 @@ module Auth::Concerns::Shopping::PayUMoneyConcern
|
|
174
174
|
## we should just set, gateway callback complete as true, and based on that never show the pay with payumoney link again in the show action.
|
175
175
|
|
176
176
|
## just looking to see if
|
177
|
-
if
|
178
|
-
self.
|
177
|
+
if pr
|
178
|
+
if (pr["mihpayid"] && pr["hash"] && (pr["txnid"] == self.id.to_s))
|
179
|
+
self.gateway_callback_called = true
|
180
|
+
end
|
179
181
|
end
|
180
182
|
yield if block_given?
|
181
183
|
return true
|