Class: ActiveAdmin::Cms::ContentType

Inherits:
Object
  • Object
show all
Includes:
Utility::ClassLevelInheritableAttributes
Defined in:
lib/active_admin/cms/content_type.rb

Class Method Summary collapse

Methods included from Utility::ClassLevelInheritableAttributes

included

Class Method Details

.display_preview?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/active_admin/cms/content_type.rb', line 66

def display_preview?
  @display_preview
end

.file_allowed?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/active_admin/cms/content_type.rb', line 54

def file_allowed?
  @file_allowed
end

.file_required?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/active_admin/cms/content_type.rb', line 58

def file_required?
  @file_required
end

.image_allowed?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/active_admin/cms/content_type.rb', line 46

def image_allowed?
  @image_allowed
end

.image_required?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/active_admin/cms/content_type.rb', line 50

def image_required?
  @image_required
end

.image_uploaderObject



62
63
64
# File 'lib/active_admin/cms/content_type.rb', line 62

def image_uploader
  ActiveAdmin::Cms::Uploaders::ContentImageUploader
end

.markdown_allowed?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/active_admin/cms/content_type.rb', line 38

def markdown_allowed?
  @markdown_allowed
end

.text_allowed?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/active_admin/cms/content_type.rb', line 34

def text_allowed?
  @text_allowed
end

.text_required?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/active_admin/cms/content_type.rb', line 42

def text_required?
  @text_required
end