Class: Ecm::Contact::Routing

Inherits:
Object
  • Object
show all
Defined in:
lib/ecm/contact/routing.rb

Class Method Summary collapse

Class Method Details

.routes(router, options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ecm/contact/routing.rb', line 4

def self.routes(router, options = {})
  options.reverse_merge!(
    contact_request_actions: [:index, :create]
  )

  router.resources :ecm_contact_requests, only: options[:contact_request_actions], controller: 'ecm/contact/requests'
end