Sha256: 28ba7a1c25e48ba947298bf375207a71fc81279b01a5d19c1e4cf93c171d7d51

Contents?: true

Size: 421 Bytes

Versions: 26

Compression:

Stored size: 421 Bytes

Contents

module Jammit

  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'
    end

  end

end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
jammit-core-0.1.1 lib/jammit-core/routes.rb
jammit-core-0.1.0 lib/jammit-core/routes.rb
jammit-0.4.4 lib/jammit/routes.rb
ghazel-jammit-0.4.3.1 lib/jammit/routes.rb
jammit-0.4.3 lib/jammit/routes.rb
jammit-0.4.2 lib/jammit/routes.rb
jammit-0.4.1 lib/jammit/routes.rb
jammit-0.4.0 lib/jammit/routes.rb
jammit-0.3.3 lib/jammit/routes.rb
jammit-0.3.2 lib/jammit/routes.rb
jammit-0.3.1 lib/jammit/routes.rb
jammit-0.3.0 lib/jammit/routes.rb
jammit-0.2.9 lib/jammit/routes.rb
jammit-0.2.8 lib/jammit/routes.rb
jammit-0.2.7 lib/jammit/routes.rb
jammit-0.2.6 lib/jammit/routes.rb
jammit-0.2.5 lib/jammit/routes.rb
jammit-0.2.4 lib/jammit/routes.rb
jammit-0.2.3 lib/jammit/routes.rb
jammit-0.2.2 lib/jammit/routes.rb