Sha256: 8711e538ab99f88953143d6a39789fded3b96605ee81098fb7dfe7a15051e0a5
Contents?: true
Size: 1.02 KB
Versions: 21
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true resources :patients, only: [] do resources :prescriptions, controller: "medications/prescriptions", except: [:destroy] namespace :medications do namespace :home_delivery do resources :events, only: [:new, :create, :edit, :update, :show] # resources :prescriptions, # only: [:index], # constraints: { format: /(pdf)/ }, # defaults: { format: :pdf } end resources :prescriptions, only: [] do resource :termination, only: [:new, :create] end end end namespace :medications do # medications_esa_prescriptions => /medications/esa_prescriptions resources :esa_prescriptions, only: :index, drug_type_name: :esa, controller: "drug_types/prescriptions" namespace :home_delivery do constraints(named_filter: /#{Renalware::Medications::Delivery::DRUG_TYPE_FILTERS.join("|")}/) do get "prescriptions/:named_filter", to: "prescriptions#index", as: :prescriptions end end end
Version data entries
21 entries across 21 versions & 1 rubygems