Method: ActiveSetting::Setting#calculate_object_options

Defined in:
lib/active_setting/setting.rb

#calculate_object_optionsObject

DEPRECATED: Please use standard options instead.



63
64
65
66
67
68
69
70
71
# File 'lib/active_setting/setting.rb', line 63

def calculate_object_options
  puts '[WARNING] ActiveSetting::Setting#object_options is deprecated'\
    ' as it poses a serious security risk and will be removed in future versions'

  objects, key, value = @object_options.split(' ')
  value = key if value.nil? || value == ''
  # TODO: Remove this method, as it uses eval !!!
  objects_from_collection(eval(objects), key, value)
end