|
Revision 58, 0.5 KB
(checked in by dema, 7 years ago)
|
|
Updating to Rails 1.1.2
|
| Rev | Line | |
|---|
| [58] | 1 | class << Object; alias_method :const_available?, :const_defined?; end |
|---|
| 2 | |
|---|
| 3 | class ContentController < Class.new(ActionController::Base) |
|---|
| 4 | end |
|---|
| 5 | class NotAController |
|---|
| 6 | end |
|---|
| 7 | module Admin |
|---|
| 8 | class << self; alias_method :const_available?, :const_defined?; end |
|---|
| 9 | class UserController < Class.new(ActionController::Base); end |
|---|
| 10 | class NewsFeedController < Class.new(ActionController::Base); end |
|---|
| 11 | end |
|---|
| 12 | |
|---|
| 13 | ActionController::Routing::Routes.draw do |map| |
|---|
| 14 | map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me' |
|---|
| 15 | map.connect ':controller/:action/:id' |
|---|
| 16 | end |
|---|