Sha256: f8d5ffced5ce5b1b6de94cbfa207deb82d03ad6478e8b7db30e6cf8147243ca3

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

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

        def generate
          @set.formatter.generate(
            named_route,
            options,
            recall,
            lambda do |name, value|
              if name == :controller
                value
              else
                Slugs.parameterize value, options
              end
            end
          )
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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