Class: Iron::ContentTypes::Single

Inherits:
Iron::ContentType show all
Defined in:
app/models/iron/content_types/single.rb

Constant Summary

Constants inherited from Iron::ContentType

Iron::ContentType::TYPES

Instance Method Summary collapse

Methods inherited from Iron::ContentType

classify_type, #collection?, #humanized_type, inherited, #single?

Methods included from Iron::ContentType::Titlable

#titlable_definitions

Methods included from Iron::ContentType::WebPublishable

#index_entry, #path_for

Methods included from Iron::ContentType::Exportable

#export_attributes

Instance Method Details

#entryObject



4
5
6
# File 'app/models/iron/content_types/single.rb', line 4

def entry
  entries.first || entries.build
end