Flowdock
method

initialize_temporary_session_directory

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: Rails::Initializer
initialize_temporary_session_directory() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/initializer.rb, line 425
    def initialize_temporary_session_directory
      if configuration.frameworks.include?(:action_controller)
        session_path = "#{configuration.root_path}/tmp/sessions/"
        ActionController::Base.session_options[:tmpdir] = File.exist?(session_path) ? session_path : Dir::tmpdir
      end
    end
Register or log in to add new notes.