2007-01-22 14:43:50 +01:00
|
|
|
class << Object; alias_method :const_available?, :const_defined?; end
|
|
|
|
|
|
|
|
class ContentController < Class.new(ActionController::Base)
|
|
|
|
end
|
|
|
|
class NotAController
|
|
|
|
end
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
2008-05-18 06:22:34 +02: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
|
|
|
|
|
2007-01-22 14:43:50 +01:00
|
|
|
ActionController::Routing::Routes.draw do |map|
|
|
|
|
map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
|
|
|
|
map.connect ':controller/:action/:id'
|
|
|
|
end
|