Sha256: 9a2da85a52e1a55a8c84d11612ef830bc88e23cfb4128b931061ea2c4258566a
Contents?: true
Size: 549 Bytes
Versions: 39
Compression:
Stored size: 549 Bytes
Contents
module ActionDispatch module Routing RECORD_SELECT_ROUTING = { :collection => {:browse => :get}, :member => {:select => :post} } class Mapper module Base 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 end end end end
Version data entries
39 entries across 39 versions & 2 rubygems