Class: Spree::Admin::TaxonVendorsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Spree::Admin::TaxonVendorsController
- Defined in:
- app/controllers/spree/admin/taxon_vendors_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/spree/admin/taxon_vendors_controller.rb', line 6 def index @taxonomy = Spree::Taxonomy.find(params[:taxonomy_id]) @taxon = @taxonomy.taxons.find(params[:taxon_id]) # Retrieve taxon vendors associated with the taxon, including the vendor association @taxon_vendors = @taxon.taxon_vendors.includes(:vendor) end |