Class: Rails::Configuration
- Inherits:
-
Object
- Object
- Rails::Configuration
- Defined in:
- lib/harker/rails_configuration.rb
Overview
TODO: not sure if my Rails patches cover tmp/sessions or tmp/sockets
Instance Attribute Summary collapse
-
#tmp_dir ⇒ Object
Returns the value of attribute tmp_dir.
Instance Method Summary collapse
Instance Attribute Details
#tmp_dir ⇒ Object
Returns the value of attribute tmp_dir.
4 5 6 |
# File 'lib/harker/rails_configuration.rb', line 4 def tmp_dir @tmp_dir end |
Instance Method Details
#default_cache_store ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/harker/rails_configuration.rb', line 10 def default_cache_store if File.exist? File.join(default_tmp_dir, 'cache') [ :file_store, File.join(default_tmp_dir, 'cache') ] else :memory_store end end |
#default_tmp_dir ⇒ Object
6 7 8 |
# File 'lib/harker/rails_configuration.rb', line 6 def default_tmp_dir File.join(root_path, 'tmp') end |