Module Backup::Configuration::Helpers::ClassMethods
In: lib/backup/configuration/helpers.rb

Methods

Public Instance methods

Used only within the specs

Returns or yields the Configuration::Store for storing pre-configured defaults for the class.

Protected Instance methods

Method to deprecate an attribute.

:version

  Must be set to the backup version which will first
  introduce the deprecation.

:action

  If set, this Proc will be called with a reference to the
  class instance and the value set on the deprecated accessor.
  e.g. deprecation[:action].call(klass, value)
  This should perform whatever action is neccessary, such as
  transferring the value to a new accessor.

:message

  If set, this will be appended to #log_deprecation_warning

Note that this replaces the `attr_accessor` method, or other method previously used to set the accessor being deprecated. method_missing will handle any calls to `name=`.

[Validate]