Sha256: dcb5b91aac6c552a60fbc7dcc2646e7e15d20872982eeb08ab528752de9440a9
Contents?: true
Size: 1.34 KB
Versions: 9
Compression:
Stored size: 1.34 KB
Contents
MessageTrain::Engine.routes.draw do concern :boxable do resources :boxes, path: 'box', param: :division, only: [:show, :update, :destroy] do resources :conversations, only: [:show, :update, :destroy] resources :messages, except: [:index, :destroy] get 'participants/:model', as: :model_participants, to: 'participants#index' get 'participants/:model/:id', as: :model_participant, to: 'participants#show' end end authenticated MessageTrain.configuration.user_route_authentication_method do concerns :boxable resources :collectives, as: :collective, only: [], concerns: :boxable resources :unsubscribes, only: [:index, :create, :destroy] end match '/box(/*path)' => redirect { |p, req| req.flash[:error] = :you_must_sign_in_or_sign_up_to_continue.l MessageTrain.configuration.user_sign_in_path }, via: [:get, :put, :post, :delete] match '/collectives(/*path)' => redirect { |p, req| req.flash[:error] = :you_must_sign_in_or_sign_up_to_continue.l MessageTrain.configuration.user_sign_in_path }, via: [:get, :put, :post, :delete] match '/unsubscribes(/*path)' => redirect { |p, req| req.flash[:error] = :you_must_sign_in_or_sign_up_to_continue.l MessageTrain.configuration.user_sign_in_path }, via: [:get, :put, :post, :delete] end
Version data entries
9 entries across 9 versions & 1 rubygems