Class: Essay::AttributeFeatures::HumanID
- Inherits:
-
Base
- Object
- Base
- Essay::AttributeFeatures::HumanID
- Defined in:
- lib/humanid/essay.rb
Instance Method Summary collapse
- #options ⇒ Object
- #persists? ⇒ Boolean
- #updates_automatically? ⇒ Boolean
- #updates_if_blank? ⇒ Boolean
- #updates_manually? ⇒ Boolean
Instance Method Details
#options ⇒ Object
35 36 37 |
# File 'lib/humanid/essay.rb', line 35 def active_record..fetch(attribute.name) end |
#persists? ⇒ Boolean
19 20 21 |
# File 'lib/humanid/essay.rb', line 19 def persists? !![:persist] end |
#updates_automatically? ⇒ Boolean
27 28 29 |
# File 'lib/humanid/essay.rb', line 27 def updates_automatically? !updates_manually? end |
#updates_if_blank? ⇒ Boolean
31 32 33 |
# File 'lib/humanid/essay.rb', line 31 def updates_if_blank? [:update] == :if_blank end |
#updates_manually? ⇒ Boolean
23 24 25 |
# File 'lib/humanid/essay.rb', line 23 def updates_manually? [:update] == :manual end |