Sha256: 0284130147de5747b45ce454a8c035f50bbda210163f35813560df57a97f2958

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module SolidusStarterFrontend
  module Taxonomies
    extend ActiveSupport::Concern
    included do
      helper_method :taxonomies
    end

    protected

    def taxonomies
      @taxonomies ||= Spree::Taxonomy.includes(root: :children)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/controllers/concerns/solidus_starter_frontend/taxonomies.rb