Sha256: 5e3ba5d98758d41137465453d94bfcfb4b43b09ddc68f2aa8edcd477aa46ee86

Contents?: true

Size: 1.56 KB

Versions: 6

Compression:

Stored size: 1.56 KB

Contents

module ActionController
  module Routing #:nodoc:
    class RouteSet #:nodoc:
      alias_method :draw_without_rio_routes, :draw
      def draw
        draw_without_rio_routes do |map|
          map.connect 'rio/fixtures', :controller => 'rio_spec', :action => 'fixtures' if RAILS_ENV == "development" or RAILS_ENV == "test" or ENV["rio_proxy"] == "true"
          map.connect 'rio/specs', :controller => 'rio_spec', :action => 'specs' if RAILS_ENV == "development" or RAILS_ENV == "test" or ENV["rio_proxy"] == "true"
          map.connect 'rio/file', :controller => 'rio_file', :action => 'write' if RAILS_ENV == "development"
          map.connect 'rio/stylesheets', :controller => 'rio_proxy', :action => 'stylesheet_concat'
          yield map
          map.connect 'javascripts/*path', :controller => 'rio_proxy', :action => 'javascripts' if RAILS_ENV == "development" or RAILS_ENV == "test" or ENV["rio_proxy"] == "true"
          map.connect 'sounds/*path', :controller => 'rio_proxy', :action => 'sounds' if RAILS_ENV == "development" or RAILS_ENV == "test" or ENV["rio_proxy"] == "true"
          map.connect 'images/*path', :controller => 'rio_proxy', :action => 'images'
          map.connect 'stylesheets/*path', :controller => 'rio_proxy', :action => 'stylesheets'
          map.connect 'push/subscribe', :controller => 'rio_push', :action => 'subscribe'
          map.connect 'push/broadcast', :controller => 'rio_push', :action => 'broadcast'
          map.connect 'push/test_connection', :controller => 'rio_push', :action => 'test_connection'
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riojs-0.0.7 lib/rio/rio_routes.rb
riojs-0.0.6 lib/rio/rio_routes.rb
riojs-0.0.5 lib/rio/rio_routes.rb
riojs-0.0.4 lib/rio/rio_routes.rb
riojs-0.0.3 lib/rio/rio_routes.rb
riojs-0.0.2 lib/rio/rio_routes.rb