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

Version Path
recordselect_vho-4.0.0 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.1.104 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.1.103 lib/record_select/extensions/routing_mapper.rb
recordselect-3.3.2 lib/record_select/extensions/routing_mapper.rb
recordselect-3.3.1 lib/record_select/extensions/routing_mapper.rb
recordselect-3.3.0 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.11 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.10 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.9 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.8 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.7 lib/record_select/extensions/routing_mapper.rb
recordselect-3.0.5 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.6 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.0.206 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.0.205 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.1.102 lib/record_select/extensions/routing_mapper.rb
recordselect_vho-3.0.204 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.4 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.3 lib/record_select/extensions/routing_mapper.rb
recordselect-3.2.2 lib/record_select/extensions/routing_mapper.rb