Module: PeaceOfMind::StorageAdapter::Config
- Defined in:
- lib/peace_of_mind/storage_adapter.rb
Instance Method Summary collapse
- #storage_adapter(value = nil) ⇒ Object (also: #storage_adapter=)
Instance Method Details
#storage_adapter(value = nil) ⇒ Object Also known as: storage_adapter=
10 11 12 13 14 15 16 |
# File 'lib/peace_of_mind/storage_adapter.rb', line 10 def storage_adapter(value = nil) case value when :S3 ::PeaceOfMind::Base.send :include, PeaceOfMind::StorageAdapter::S3 end rw_config(:storage_adapter, value) end |