Class: RivetCms::ContentType

Inherits:
ApplicationRecord show all
Includes:
HasFields, OrganizationScoped, Sluggable, SoftDeletable
Defined in:
app/models/rivet_cms/content_type.rb

Constant Summary

Constants included from Sluggable

Sluggable::SLUG_FORMAT

Instance Method Summary collapse

Methods included from SoftDeletable

#discard, #discard!, #discarded?, #kept?, #undiscard, #undiscard!

Methods included from HasFields

#active_fields, #all_fields, #discarded_fields

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/rivet_cms/content_type.rb', line 28

def collection?
  !single?
end