Settings fixes

This commit is contained in:
2015-08-19 15:01:00 +02:00
parent f61ed5c9ff
commit 39a21ec705
3 changed files with 84 additions and 53 deletions
@@ -133,11 +133,13 @@ class SupplierEmployeesSettings
set_value = nil
if method.end_with? '!'
persist = true
set_value = true
attribute.chop!
end
if method.end_with? '?'
# Always a getter, so no set_value
attribute.chop!
#attribute = attribute.from(7) if attribute.start_with? 'is_not'
attribute = attribute.from(3) if attribute.start_with? 'is_'
elsif method.start_with? 'is_not_'
set_value = false