Sha256: c8751d3469ea2d2c64f2d76418fe042e62640c8276d00aeb914fc73861d59234

Contents?: true

Size: 835 Bytes

Versions: 4

Compression:

Stored size: 835 Bytes

Contents

module Ecm::Staff
  class Routing
    def self.routes(router, options = {})
      options.reverse_merge!(
        { organisations_actions:   [:index, :show],
          business_units_actions:  [:index, :show],
          people_actions:          [:index, :show],
        }
      )

      router.resources :ecm_staff_organisations,  only:       options[:organisations_actions],
                                                  controller: 'ecm/staff/organisations'
      router.resources :ecm_staff_business_units, only:       options[:business_units_actions],
                                                  controller: 'ecm/staff/business_units'
      router.resources :ecm_staff_people,         only:       options[:people_actions],
                                                  controller: 'ecm/staff/people'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecm_staff2-1.0.0 lib/ecm/staff/routing.rb
ecm_staff2-0.0.3 lib/ecm/staff/routing.rb
ecm_staff2-0.0.2 lib/ecm/staff/routing.rb
ecm_staff2-0.0.1 lib/ecm/staff/routing.rb