Class: Sail::Entry

Inherits:
ApplicationRecord show all
Defined in:
app/models/sail/entry.rb

Overview

Entry

The Entry class holds the saved value for settings for each profile. It is a model for representing the N x N relationship between profiles and settings

Instance Method Summary collapse

Instance Method Details

#dirty?Boolean

dirty?

dirty? will return true if the entry value is different than the associated setting value. This happens when a setting is changed without saving the profile.

Returns:

  • (Boolean)


26
27
28
# File 'app/models/sail/entry.rb', line 26

def dirty?
  value != setting.value
end