class UserPlane::RouteConcerns::AbstractNamespacedConcern

Public Instance Methods

call(mapper, concern_options = {}) click to toggle source

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

# 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