Sha256: 2155263fc2d58d9a3431e161454148bfd30ff3346738d3caf217cd448936101d
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 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' unless RAILS_ENV == "production" map.connect 'rio/specs', :controller => 'rio_spec', :action => 'specs' unless RAILS_ENV == "production" 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" map.connect 'sounds/*path', :controller => 'rio_proxy', :action => 'sounds' if RAILS_ENV == "development" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riojs-0.0.1 | lib/rio/rio_routes.rb |
riojs-0.0.0 | lib/rio/rio_routes.rb |