Class: Essay::AttributeFeatures
- Inherits:
-
Object
- Object
- Essay::AttributeFeatures
- Defined in:
- lib/humanid/essay.rb
Defined Under Namespace
Classes: HumanID
Instance Method Summary collapse
Instance Method Details
#human_id ⇒ Object
9 10 11 |
# File 'lib/humanid/essay.rb', line 9 def human_id @human_id || @human_id = HumanID.new(env) if human_id? end |
#human_id? ⇒ Boolean
5 6 7 |
# File 'lib/humanid/essay.rb', line 5 def human_id? active_record.attributes_marked_as_human_id.include?(attribute.name) end |