Sha256: 09d39e36feb9ffca35cc6158e1ccbbf71f813d92ce6bdb38d80f12a281706ad3

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

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.1 app/models/concerns/spree/indexable.rb