Method: Mobility::Backend::Sequel::Serialized.configure!
- Defined in:
- lib/mobility/backend/sequel/serialized.rb
.configure!(options) ⇒ Object
51 52 53 54 55 |
# File 'lib/mobility/backend/sequel/serialized.rb', line 51 def self.configure!() [:format] ||= :yaml [:format] = [:format].downcase.to_sym raise ArgumentError, "Serialized backend only supports yaml or json formats." unless [:yaml, :json].include?([:format]) end |