Class: Sail::Entry
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Sail::Entry
- 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
-
#dirty? ⇒ Boolean
dirty?.
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.
26 27 28 |
# File 'app/models/sail/entry.rb', line 26 def dirty? value != setting.value end |