Class: UserPlane::RouteConcerns::SignUp

Inherits:
AbstractNamespacedConcern show all
Defined in:
lib/user_plane/route_concerns.rb

Instance Attribute Summary

Attributes inherited from AbstractConcern

#concern_options, #mapper

Instance Method Summary collapse

Methods inherited from AbstractNamespacedConcern

#call

Methods inherited from AbstractConcern

#call, #exists?, #initialize, #options

Constructor Details

This class inherits a constructor from UserPlane::RouteConcerns::AbstractConcern

Instance Method Details

#buildObject



92
93
94
95
96
97
98
# File 'lib/user_plane/route_concerns.rb', line 92

def build
  mapper.resource :sign_up, options(only: [:new, :create]) do
    if exists? :auth_endpoint
      mapper.concerns :auth_endpoint, controller: :sign_ups
    end
  end
end