|
|
@ -47,4 +47,8 @@ class CaseLog < ApplicationRecord |
|
|
|
mandatory_fields = attributes.except(*AUTOGENERATED_FIELDS) |
|
|
|
mandatory_fields = attributes.except(*AUTOGENERATED_FIELDS) |
|
|
|
mandatory_fields.none? { |_key, val| val.nil? } |
|
|
|
mandatory_fields.none? { |_key, val| val.nil? } |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def self.editable_fields |
|
|
|
|
|
|
|
attribute_names - AUTOGENERATED_FIELDS |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|