Sha256: dd25dc9662a225c0b74871238723bc2c888b340980bd781d4686082fa7fce41d

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true
module Spree
  module Indexable
    extend ActiveSupport::Concern

    included do
      ##
      # Override Index naming to add environment
      index_name index_name "#{name.gsub('::', '-').downcase}-#{Rails.env}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_recommendations-0.0.2 app/models/concerns/spree/indexable.rb