Sha256: c8024c9b18333609795446c8027fb1d195470bc72979b5561756481cb22f0db5

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

module Slugs
  module Extensions
    module ActionDispatch
      module OptimizedUrlHelper

        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

2 entries across 2 versions & 1 rubygems

Version Path
slugs-2.0.1 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb
slugs-2.0.0 lib/slugs/extensions/action_dispatch/optimized_url_helper.rb