Module: ServiceController::RestServiceUrls

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
app/concerns/service_controller/rest_service_urls.rb

Instance Method Summary collapse

Instance Method Details

#create_service_pathObject


13
14
15
# File 'app/concerns/service_controller/rest_service_urls.rb', line 13

def create_service_path
  resource_router.send(:url_for, { action: :create, only_path: true })
end

#new_service_pathObject


9
10
11
# File 'app/concerns/service_controller/rest_service_urls.rb', line 9

def new_service_path
  resource_router.send(:url_for, { action: :new, only_path: true })
end

#resource_routerObject


17
18
19
# File 'app/concerns/service_controller/rest_service_urls.rb', line 17

def resource_router
  self
end