Sha256: 152b92cf39a2f22c7492668a72c9a2570ee91aac8decaa13003b804d40835b69

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

module Slugs
  module Extensions
    module ActionDispatch
      module OptimizedUrlHelper
        extend ActiveSupport::Concern

        private

        def parameterize_args(args)
          parameterized_args = args.map do |arg|
            Slugs.parameterize arg, @options
          end
          params = {}
          @required_parts.zip(parameterized_args) { |k,v| params[k] = v }
          params
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slugs-4.0.0.3 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb
slugs-4.0.0.2 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb
slugs-4.0.0.1 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb
slugs-4.0.0.0 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb