lib/quickbooks/model.rb
# Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks.
Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks.
Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks .
def dirty?
      self.class.read_write.any? do |column|
        self.instance_variable_get('@' + column.to_s) != original_values[column.to_s]
      end
    end
def dirty? self . class . read_write . any? do | column | self . instance_variable_get ( '@' + column . to_s ) != original_values [ column . to_s ] end end
Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks.
Returns true if any attributes have changed since the object was last loaded or updated from Quickbooks .
# Concept: For each column that the current model includes, has the value been changed?