Module: ActionDispatch::Routing::Mapper::Base

Defined in:
lib/record_select/extensions/routing_mapper.rb

Instance Method Summary collapse

Instance Method Details

#record_select_routesObject



9
10
11
12
13
14
15
16
# File 'lib/record_select/extensions/routing_mapper.rb', line 9

def record_select_routes
  collection do
    ActionDispatch::Routing::RECORD_SELECT_ROUTING[:collection].each {|name, type| send(type, name)}
  end
  member do
    ActionDispatch::Routing::RECORD_SELECT_ROUTING[:member].each {|name, type| send(type, name)}
  end
end