Skip to content
Browse files

Properly namespace homepage view/controller

  • Loading branch information...
1 parent bb0e82c commit 9a008645b60aa74594865d11b9a938c3791fe346 @LBRapid LBRapid committed
View
9 app/controllers/homepage_controller.rb
@@ -1,9 +0,0 @@
-class HomepageController < Spree::BaseController
- helper 'spree/products'
-
- def show
- @product_groups = Spree::Config[:homepage_groups].split(',').map { |name| Spree::ProductGroup.find_by_name(name) }.compact
- end
-
-end
-
View
10 app/controllers/spree/homepage_controller.rb
@@ -0,0 +1,10 @@
+class Spree::HomepageController < Spree::BaseController
+ helper 'spree/products'
+
+ def show
+ binding.pry
+ @product_groups = RailsdogRadio::Config[:homepage_groups].split(',').map { |name| Spree::ProductGroup.find_by_name(name) }.compact
+ end
+
+end
+
View
0 app/views/homepage/show.html.erb → app/views/spree/homepage/show.html.erb
File renamed without changes.

0 comments on commit 9a00864

Please sign in to comment.
Something went wrong with that request. Please try again.