Sha256: 4aa8428b4a1db3efc7fba264a39da0e58b63e4aabf41d9d0678ab67c695eaa80
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
module ServiceController::RestServiceUrls extend ActiveSupport::Concern included do helper_method :collection_path, :call_service_path, :invoke_service_path end def collection_path resource_router.send(:url_for, { action: :index, only_path: true }) end def invoke_service_path resource_router.send(:url_for, { action: :invoke, only_path: true }) end def call_service_path resource_router.send(:url_for, { action: :call, only_path: true }) end def resource_router self end end
Version data entries
3 entries across 3 versions & 1 rubygems