Sha256: 15327036ab41e8746570037532a1fba8dce653eab5d807b0ef8d85c8cff0a10e

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 Bytes

Contents

module Alchemy::Custom::Model
  module GlobalizeModelDecoration
    extend ActiveSupport::Concern

    included do

      include GlobalIdSetter
      include MenuMethods
      include ModelUtilsMethods
      include SitemapMethods



      def self.use_friendly(base = nil, options = {}, &block)
        extend FriendlyId

        self.friendly_id(base, options.merge(use: [:globalize]), &block)

        include SlugOptimizer

      end

    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.5 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.4 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.3 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.2 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.1 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.1.0 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-2.2.2 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-3.0.0 lib/alchemy/custom/model/globalize_model_decoration.rb
alchemy-custom-model-2.2.1 lib/alchemy/custom/model/globalize_model_decoration.rb