Class: UserPlane::RouteConcerns::AbstractNamespacedConcern

Inherits:
AbstractConcern
  • Object
show all
Defined in:
lib/user_plane/route_concerns.rb

Direct Known Subclasses

Base, EmailIdentity, Invites, SignUp

Instance Attribute Summary

Attributes inherited from AbstractConcern

#concern_options, #mapper

Instance Method Summary collapse

Methods inherited from AbstractConcern

#exists?, #initialize, #options

Constructor Details

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

Instance Method Details

#call(mapper, concern_options = {}) ⇒ Object

The abstract concern should be able to handle resources having a preferred collection/resource target.



48
49
50
51
52
53
54
55
# File 'lib/user_plane/route_concerns.rb', line 48

def call(mapper, concern_options = {})
  @mapper = mapper
  @concern_options = concern_options

  mapper.namespace @namespace, path: '/' do
    build
  end
end