Settings fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user