Sha256: f8a882c0c439d6c26fc7882cdc68311a2189bad6efc5fe0131fc6293f1a55b19

Contents?: true

Size: 870 Bytes

Versions: 23

Compression:

Stored size: 870 Bytes

Contents

Rails.application.routes.draw do

  concern :printing do
    member do
      get 'print'
      get 'slip'
    end
    collection do
      get 'print'
    end
  end

  # prefer and defer elements (setting preferred true|false)
  concern :preferring do
    member do
      get 'prefer'
      get 'defer'
    end
  end

  # attach and detach the route in question to its 'parent'
  concern :attaching do
    member do
      get 'attach'
      get 'detach'
    end
  end

  # activate and passify the route in question
  concern :activating do
    member do
      get 'activate'
      get 'deactivate'
    end
  end


  scope '/admin' do
    resources :services
    resources :printables
    resources :print_jobs, concerns: :printing
    resources :printers, concerns: [:activating, :attaching, :printing] do
      resources :users, concerns: :attaching
    end
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
oxen_printer-0.4.15 config/routes.rb
oxen_printer-0.4.14 config/routes.rb
oxen_printer-0.4.13 config/routes.rb
oxen_printer-0.4.12 config/routes.rb
oxen_printer-0.4.11 config/routes.rb
oxen_printer-0.4.9 config/routes.rb
oxen_printer-0.4.8 config/routes.rb
oxen_printer-0.4.7 config/routes.rb
oxen_printer-0.4.5 config/routes.rb
oxen_printer-0.4.4 config/routes.rb
oxen_printer-0.4.3 config/routes.rb
oxen_printer-0.4.2 config/routes.rb
oxen_printer-0.4.1 config/routes.rb
oxen_printer-0.3.4 config/routes.rb
oxen_printer-0.3.3 config/routes.rb
oxen_printer-0.3.2 config/routes.rb
oxen_printer-0.3.1 config/routes.rb
oxen_printer-0.3.0 config/routes.rb
oxen_printer-0.2.9 config/routes.rb
oxen_printer-0.2.8 config/routes.rb