Class: Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby/rails_path.rb

Instance Method Summary collapse

Instance Method Details

#threadsafe?Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
10
11
12
13
# File 'lib/jruby/rails_path.rb', line 3

def threadsafe?
  if(Rails::Configuration.instance_methods.include?'threadsafe!')
    if(Rails::Configuration.instance_methods.include?'preload_frameworks')
      preload_frameworks && cache_classes && !dependency_loading && action_controller.allow_concurrency
    else
      cache_classes && !dependency_loading && action_controller.allow_concurrency
    end
  else
    false
  end
end