Skip to content
This repository
Browse code

Namespace Taxonomy reference in Spree::BaseController

A user, beneggett, reported that sans-namespace reference was causing uninitialized constant Spree::BaseController::Taxonomy
  • Loading branch information...
commit b61fc624b0bf3c2d71ddd5dd33f38e3d13be181e 1 parent d07f02c
Ryan Bigg authored
2  core/app/controllers/spree/base_controller.rb
@@ -133,7 +133,7 @@ def redirect_back_or_default(default)
133 133
   end
134 134
 
135 135
   def get_taxonomies
136  
-    @taxonomies ||= Taxonomy.includes(:root => :children).joins(:root)
  136
+    @taxonomies ||= Spree::Taxonomy.includes(:root => :children).joins(:root)
137 137
   end
138 138
 
139 139
   def set_user_language

0 notes on commit b61fc62

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