Sha256: 18a019e48e0de8759144ecf4d805795bb40d41e201c15be6f3f09f9291b2863a
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
require "action_controller/log_subscriber" module ActionController class Base < Metal abstract! def self.without_modules(*modules) modules = modules.map do |m| m.is_a?(Symbol) ? ActionController.const_get(m) : m end MODULES - modules end MODULES = [ AbstractController::Layouts, AbstractController::Translation, AbstractController::AssetPaths, Helpers, HideActions, UrlFor, Redirecting, Rendering, Renderers::All, ConditionalGet, RackDelegation, SessionManagement, Caching, MimeResponds, ImplicitRender, Cookies, Flash, RequestForgeryProtection, Streaming, RecordIdentifier, HttpAuthentication::Basic::ControllerMethods, HttpAuthentication::Digest::ControllerMethods, HttpAuthentication::Token::ControllerMethods, # Add instrumentations hooks at the bottom, to ensure they instrument # all the methods properly. Instrumentation, # Before callbacks should also be executed the earliest as possible, so # also include them at the bottom. AbstractController::Callbacks, # The same with rescue, append it at the end to wrap as much as possible. Rescue ] MODULES.each do |mod| include mod end # Rails 2.x compatibility include ActionController::Compatibility def self.inherited(klass) super klass.helper :all end ActiveSupport.run_load_hooks(:action_controller, self) end end require "action_controller/deprecated/base"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionpack-3.0.0.rc | lib/action_controller/base.rb |