Class: WhiskeyDisk::Config::DefaultDomainFilter
- Inherits:
-
AbstractFilter
- Object
- AbstractFilter
- WhiskeyDisk::Config::DefaultDomainFilter
- Defined in:
- lib/whiskey_disk/config/filters/default_domain_filter.rb
Instance Attribute Summary
Attributes inherited from AbstractFilter
Instance Method Summary collapse
Methods inherited from AbstractFilter
#environment_name, #initialize, #project_name
Constructor Details
This class inherits a constructor from WhiskeyDisk::Config::AbstractFilter
Instance Method Details
#filter(data) ⇒ Object
6 7 8 |
# File 'lib/whiskey_disk/config/filters/default_domain_filter.rb', line 6 def filter(data) data.has_key?('domain') ? data : data.merge('domain' => [ { 'name' => 'local' } ] ) end |