Module VestalVersions::Options::ClassMethods
In: lib/vestal_versions/options.rb

Class methods that provide preparation of options passed to the versioned method.

Methods

Public Instance methods

The prepare_versioned_options method has three purposes:

  1. Populate the provided options with default values where needed
  2. Prepare options for use with the has_many association
  3. Save user-configurable options in a class-level variable

Options are given priority in the following order:

  1. Those passed directly to the versioned method
  2. Those specified in an initializer configure block
  3. Default values specified in prepare_versioned_options

The method is overridden in feature modules that require specific options outside the standard has_many associations.

[Validate]