Class: DocumentationEditor::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/documentation_editor/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#before_filterObject

configure the before_filter used for the preview & show actions



16
17
18
# File 'lib/documentation_editor/configuration.rb', line 16

def before_filter
  @before_filter
end

#is_adminObject

configure the before_filter to use to identity administrators



7
8
9
# File 'lib/documentation_editor/configuration.rb', line 7

def is_admin
  @is_admin
end

#layoutObject

custom layout



4
5
6
# File 'lib/documentation_editor/configuration.rb', line 4

def layout
  @layout
end

#lower_title_levelsObject

lower title levels (h1 -> h2, h2 -> h3, …)



19
20
21
# File 'lib/documentation_editor/configuration.rb', line 19

def lower_title_levels
  @lower_title_levels
end

#paperclip_optionsObject

additional paperclip parameters



10
11
12
# File 'lib/documentation_editor/configuration.rb', line 10

def paperclip_options
  @paperclip_options
end

#wrap_h1_with_sectionsObject

should we wrap h1’s content by sections



13
14
15
# File 'lib/documentation_editor/configuration.rb', line 13

def wrap_h1_with_sections
  @wrap_h1_with_sections
end