cirandas.net

commit f5fab2b73e1c5823b624f5a7898a2ca33972e421

Author: Braulio Bhavamitra <braulio@prout.io>

stores_app: remove hardcoded users

%!v(PANIC=String method: strings: negative Repeat count)


diff --git a/plugins/stores_app/app/controllers/profile/stores_app_plugin/items_controller.rb b/plugins/stores_app/app/controllers/profile/stores_app_plugin/items_controller.rb
index 0b13679b7b96ca0286e8ea4b5c73a14947063f16..f88c62a43f95e471e2ea723ce39f31385713834e 100644
--- a/plugins/stores_app/app/controllers/profile/stores_app_plugin/items_controller.rb
+++ b/plugins/stores_app/app/controllers/profile/stores_app_plugin/items_controller.rb
@@ -26,10 +26,5 @@         .order('created_at DESC')
         .first
     end
 
-    def user
-      user = User.find_by email: 'brauliobo@gmail.com'
-      user.person
-    end
-
   end
 end




diff --git a/plugins/stores_app/app/controllers/profile/stores_app_plugin/orders_controller.rb b/plugins/stores_app/app/controllers/profile/stores_app_plugin/orders_controller.rb
index a883861ec15c4625136151b40ffd14a8625cb2c1..e51e021fa60c2b202e1e382098b977a8699f8d2f 100644
--- a/plugins/stores_app/app/controllers/profile/stores_app_plugin/orders_controller.rb
+++ b/plugins/stores_app/app/controllers/profile/stores_app_plugin/orders_controller.rb
@@ -14,10 +14,5 @@         .order('created_at DESC')
         .first
     end
 
-    def user
-      user = User.find_by email: 'brauliobo@gmail.com'
-      user.person
-    end
-
   end
 end