Class: Rails::Configuration
- Inherits:
-
Object
- Object
- Rails::Configuration
- Defined in:
- lib/harker/rails_configuration.rb
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.
13 14 15 |
# File 'lib/harker/rails_configuration.rb', line 13 def tmp_dir @tmp_dir end |
Instance Method Details
#default_cache_store ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/harker/rails_configuration.rb', line 19 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
15 16 17 |
# File 'lib/harker/rails_configuration.rb', line 15 def default_tmp_dir File.join(root_path, 'tmp') end |