2006-02-04 18:09:26 -05:00
|
|
|
class << Object; alias_method :const_available?, :const_defined?; end
|
2005-07-15 11:00:39 -04:00
|
|
|
|
2006-02-04 18:09:26 -05:00
|
|
|
class ContentController < Class.new(ActionController::Base)
|
|
|
|
end
|
2006-02-04 18:59:37 -05:00
|
|
|
class NotAController
|
|
|
|
end
|
2006-02-04 18:09:26 -05:00
|
|
|
module Admin
|
|
|
|
class << self; alias_method :const_available?, :const_defined?; end
|
|
|
|
class UserController < Class.new(ActionController::Base); end
|
|
|
|
class NewsFeedController < Class.new(ActionController::Base); end
|
2005-07-15 11:00:39 -04:00
|
|
|
end
|
|
|
|
|
2008-01-19 00:24:44 -05:00
|
|
|
# For speed test
|
|
|
|
class SpeedController < ActionController::Base; end
|
|
|
|
class SearchController < SpeedController; end
|
|
|
|
class VideosController < SpeedController; end
|
|
|
|
class VideoFileController < SpeedController; end
|
|
|
|
class VideoSharesController < SpeedController; end
|
|
|
|
class VideoAbusesController < SpeedController; end
|
|
|
|
class VideoUploadsController < SpeedController; end
|
|
|
|
class VideoVisitsController < SpeedController; end
|
|
|
|
class UsersController < SpeedController; end
|
|
|
|
class SettingsController < SpeedController; end
|
|
|
|
class ChannelsController < SpeedController; end
|
|
|
|
class ChannelVideosController < SpeedController; end
|
|
|
|
class SessionsController < SpeedController; end
|
|
|
|
class LostPasswordsController < SpeedController; end
|
|
|
|
class PagesController < SpeedController; end
|
|
|
|
|
2005-07-15 11:00:39 -04:00
|
|
|
ActionController::Routing::Routes.draw do |map|
|
2005-08-06 04:37:25 -04:00
|
|
|
map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
|
2005-07-15 11:00:39 -04:00
|
|
|
map.connect ':controller/:action/:id'
|
|
|
|
end
|