Class: Alchemy::Configurations::Uploader::AllowedFileTypes
- Inherits:
-
Alchemy::Configuration
- Object
- Alchemy::Configuration
- Alchemy::Configurations::Uploader::AllowedFileTypes
- Defined in:
- lib/alchemy/configurations/uploader.rb
Instance Method Summary collapse
- #get(key) ⇒ Object (also: #[])
- #set(configuration_hash) ⇒ Object
Methods inherited from Alchemy::Configuration
configuration, defined_configurations, defined_options, #fetch, #initialize, option, #set_from_yaml, #show, #to_h
Constructor Details
This class inherits a constructor from Alchemy::Configuration
Instance Method Details
#get(key) ⇒ Object Also known as: []
14 15 16 |
# File 'lib/alchemy/configurations/uploader.rb', line 14 def get(key) super(transform_key(key)) end |
#set(configuration_hash) ⇒ Object
10 11 12 |
# File 'lib/alchemy/configurations/uploader.rb', line 10 def set(configuration_hash) super(configuration_hash.transform_keys { transform_key(_1) }) end |