Sha256: 399d734ee49fa2acde79bd5e9fe1c7014c4c7351d20e6f93d4c2ac1af4ffb4fc

Contents?: true

Size: 253 Bytes

Versions: 11

Compression:

Stored size: 253 Bytes

Contents

module ActionDispatch::Routing
  class Mapper

  protected
    def devise_approval(mapping, controllers) 
      resource :approval, only: [:new, :create, :show], path: mapping.path_names[:approval], controller: controllers[:approvals]
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
devise_approvable-0.15.0 lib/devise_approvable/routes.rb
devise_approvable-0.14.0 lib/devise_approvable/routes.rb
devise_approvable-0.13.0 lib/devise_approvable/routes.rb
devise_approvable-0.12.0 lib/devise_approvable/routes.rb
devise_approvable-0.11.0 lib/devise_approvable/routes.rb
devise_approvable-0.10.0 lib/devise_approvable/routes.rb
devise_approvable-0.9.0 lib/devise_approvable/routes.rb
devise_approvable-0.8.0 lib/devise_approvable/routes.rb
devise_approvable-0.7.0 lib/devise_approvable/routes.rb
devise_approvable-0.6.0 lib/devise_approvable/routes.rb
devise_approvable-0.5.0 lib/devise_approvable/routes.rb