Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/core/action_controller.rb
Constant Summary
Constants included from RailsWithFirePHP::Common
RailsWithFirePHP::Common::MAX_LENGTH, RailsWithFirePHP::Common::RWFP_INIT_HEADERS, RailsWithFirePHP::Common::RWFP_INIT_HEADERS_DUMP, RailsWithFirePHP::Common::RWFP_INIT_HEADERS_LOG, RailsWithFirePHP::Common::RWFP_KINDS, RailsWithFirePHP::Common::RWFP_LEGACY_WARNING
Instance Method Summary collapse
- #_rwfp_modellog_clear ⇒ Object
- #_rwfp_modellog_show ⇒ Object
- #_rwfp_the_original_process_method ⇒ Object
-
#process(action, *arguments) ⇒ Object
def process(action, *arguments ).
Methods included from RailsWithFirePHP::Rails::Interface
#fb, #fire_dump, #fire_options
Methods included from RailsWithFirePHP::Rails
Methods included from RailsWithFirePHP::HTTPResponse
#_rwfp_set_user_agent, #fire_clog, #fire_dump, #fire_options
Methods included from RailsWithFirePHP::Common
#_rwfp_build_headers, #_rwfp_initialize_request, #_rwfp_mask_ruby_types, #_rwfp_set_options, #rwfp_internal_log, #toUnicode
Instance Method Details
#_rwfp_modellog_clear ⇒ Object
19 20 21 |
# File 'lib/core/action_controller.rb', line 19 def _rwfp_modellog_clear ActiveRecord::Base::ModelLog.clear end |
#_rwfp_modellog_show ⇒ Object
22 23 24 25 26 |
# File 'lib/core/action_controller.rb', line 22 def _rwfp_modellog_show ActiveRecord::Base::ModelLog.each do |log| fb log[:msg], log[:label] end end |
#_rwfp_the_original_process_method ⇒ Object
6 |
# File 'lib/core/action_controller.rb', line 6 alias _rwfp_the_original_process_method process |
#process(action, *arguments) ⇒ Object
def process(action, *arguments )
8 9 10 11 12 13 |
# File 'lib/core/action_controller.rb', line 8 def process(action, *arguments) response._rwfp_set_user_agent request.env['HTTP_USER_AGENT'] response._rwfp_set_header_var response.( {} ) _rwfp_the_original_process_method(action, *arguments) end |