Module: SaferSendFile
- Defined in:
- lib/safer_send_file.rb,
lib/safer_send_file/railtie.rb,
lib/safer_send_file/streaming.rb
Defined Under Namespace
Modules: Streaming
Classes: NotAllowed, Railtie
Class Method Summary
collapse
Class Method Details
.allowed_directories ⇒ Object
7
8
9
|
# File 'lib/safer_send_file.rb', line 7
def self.allowed_directories
defined?(@@allowed_directories) ? @@allowed_directories : []
end
|
.allowed_directories=(some_directories) ⇒ Object
3
4
5
|
# File 'lib/safer_send_file.rb', line 3
def self.allowed_directories=(some_directories)
@@allowed_directories = some_directories.collect { |dir| File.expand_path(dir) }
end
|