Sha256: 33467e92c35b4110dc9f63c769ca952effc56ff3e124d83f29a840d6f72cf4d7

Contents?: true

Size: 621 Bytes

Versions: 32

Compression:

Stored size: 621 Bytes

Contents

module Jammit

  # Rails 2.x routing module. Rails 3.x routes are in rails/routes.rb.
  module Routes

    # Jammit uses a single route in order to slow down Rails' routing speed
    # by the absolute minimum. In your config/routes.rb file, call:
    #   Jammit::Routes.draw(map)
    # Passing in the routing "map" object.
    def self.draw(map)
      map.jammit "/#{Jammit.package_path}/:package.:extension", {
        :controller => 'jammit',
        :action => 'package',
        :requirements => {
          # A hack to allow extension to include "."
          :extension => /.+/
        }
      }
    end

  end

end

Version data entries

32 entries across 32 versions & 13 rubygems

Version Path
jammit-0.7.0 lib/jammit/routes.rb
ee_jammit-0.6.6 lib/jammit/routes.rb
jammit-0.6.6 lib/jammit/routes.rb
sluukkonen-jammit-0.6.6 lib/jammit/routes.rb
jammit-instructure-0.6.6 lib/jammit/routes.rb
jammit-ebtd-0.6.9.2 lib/jammit/routes.rb
jammit-ebtd-0.6.9 lib/jammit/routes.rb
jammit-ebtd-0.6.8 lib/jammit/routes.rb
jammit-ebtd-0.6.7 lib/jammit/routes.rb
jammit-ebtd-0.6.6 lib/jammit/routes.rb
jammit-0.6.5 lib/jammit/routes.rb
alegscogs_jammit-0.6.3.alegscogs lib/jammit/routes.rb
alegscogs_jammit-0.6.3 lib/jammit/routes.rb
andrewroth_jammit-0.6.3 lib/jammit/routes.rb
jammit-jcarnegie-0.0.4 lib/jammit/routes.rb
jammit-jcarnegie-0.0.3 lib/jammit/routes.rb
jammit-jcarnegie-0.0.2 lib/jammit/routes.rb
jammit-jcarnegie-0.0.1 lib/jammit/routes.rb
jammit-0.6.3 lib/jammit/routes.rb
jammit-0.6.1 lib/jammit/routes.rb