Sha256: 5bd9f4e7a3075d320bbf73bfa6c860d808f459f666e5d9345fe1c4d042b89d45

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

module ActionDispatch::Routing
  class Mapper

    protected

    def devise_verification(mapping, controllers)
      path_names = {
        new: mapping.path_names[:new],
        create: mapping.path_names[:create]
      }

      resource :verification, only: [:new, :create],
                              path: mapping.path_names[:verification],
                              path_names: path_names,
                              controller: controllers[:verification]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-verifiable-1.0.0 lib/devise/verifiable/routes.rb
devise-verifiable-0.0.3 lib/devise/verifiable/routes.rb
devise-verifiable-0.0.2 lib/devise/verifiable/routes.rb
devise-verifiable-0.0.1 lib/devise/verifiable/routes.rb