Class: Iron::ContentTypes::Single
- Inherits:
-
Iron::ContentType
- Object
- ActiveRecord::Base
- ApplicationRecord
- Iron::ContentType
- Iron::ContentTypes::Single
- Defined in:
- app/models/iron/content_types/single.rb
Constant Summary
Constants inherited from Iron::ContentType
Instance Method Summary collapse
Methods inherited from Iron::ContentType
classify_type, #collection?, #humanized_type, inherited, #single?
Methods included from Iron::ContentType::Titlable
Methods included from Iron::ContentType::WebPublishable
Methods included from Iron::ContentType::Exportable
Instance Method Details
#entry ⇒ Object
4 5 6 |
# File 'app/models/iron/content_types/single.rb', line 4 def entry entries.first || entries.build end |