Module: Representable::NormalizeOptions

Defined in:
lib/representable.rb

Instance Method Summary collapse

Instance Method Details

#normalize_options(options) ⇒ Object



77
78
79
80
# File 'lib/representable.rb', line 77

def normalize_options(options)
  return options if options.any?
  {user_options: {}}.merge(options) # TODO: use keyword args once we drop 2.0.
end