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 should be set to the backup version which will first

  introduce the deprecation.

:replacement may be set to another attr_accessor name to set

  the value for instead of the deprecated accessor

:value may be used to specify the value set on :replacement.

  If :value is nil, the value set on the deprecated accessor
  will be used to set the value for the :replacement.
  If :value is a lambda, it will be passed the value the user
  set on the deprecated accessor, and should return the value
  to be set on the :replacement.
  Therefore, to cause the replacement accessor not to be set,
  use the lambda form to return nil. This is only way to specify
  a :replacement without transferring a value.
  e.g. :replacement => :new_attr, :value => Proc.new {}

[Validate]