Class: Pulitzer::PostTypeContentElementType
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Pulitzer::PostTypeContentElementType
show all
- Includes:
- PostTypeElement
- Defined in:
- app/models/pulitzer/post_type_content_element_type.rb
Instance Method Summary
collapse
#handle_sort_order, #highest_sibling_sort, included
Instance Method Details
#text_editor_display ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'app/models/pulitzer/post_type_content_element_type.rb', line 27
def text_editor_display
case text_editor
when 'None'
'no editor'
else
text_editor
end
end
|
#type_specific_display ⇒ Object
16
17
18
19
20
21
22
23
24
25
|
# File 'app/models/pulitzer/post_type_content_element_type.rb', line 16
def type_specific_display
case type
when :image
"#{height}x#{width}"
when :text
text_editor_display
else
''
end
end
|