Module: Mobility::Backends::KeyValue::ClassMethods
- Defined in:
- lib/mobility/backends/key_value.rb
Backend Configuration collapse
-
#apply_plugin(name) ⇒ Object
Apply custom processing for plugin.
- #configure(options) ⇒ Object
Instance Method Details
#apply_plugin(name) ⇒ Object
Apply custom processing for plugin
96 97 98 99 100 101 102 103 |
# File 'lib/mobility/backends/key_value.rb', line 96 def apply_plugin(name) if name == :cache include self::Cache true else super end end |
#configure(options) ⇒ Object
88 89 90 91 |
# File 'lib/mobility/backends/key_value.rb', line 88 def configure() [:type] = ([:type] || :text).to_sym raise ArgumentError, "type must be one of: [text, string]" unless [:text, :string].include?([:type]) end |