lib/active_configuration/option.rb
# Restricts the allows modifiers of this option to a given list of modifers.
#
# Example:
#
#   modifiers 'eq', 'lt', 'gt', 'lte', 'gte'
#
# @param [Array] values the allowed modifiers for this option
Restricts the allows modifiers of this option to a given list of modifers.
Example.


Restricts the allows modifiers of this option to a given list of modifers . Example .
def modifiers(*values)
      run_callbacks :validate do
        @allowed_modifiers = values.collect{|value| (value.is_a?(Symbol) ? value.to_s : value)}
      end
    end
def modifiers ( * values ) run_callbacks :validate do @allowed_modifiers = values . collect { | value | ( value . is_a? ( Symbol ) ? value . to_s : value ) } end end
Restricts the allows modifiers of this option to a given list of modifers.
Restricts the allows modifiers of this option to a given list of modifers .
values
<not_specific>
<not_specific>
values the allowed modifiers for this option
values the allowed modifiers for this option