Module: Workarea::Configuration::ContentBlocks
- Extended by:
- ContentBlocks
- Included in:
- ContentBlocks
- Defined in:
- lib/workarea/configuration/content_blocks.rb
Instance Method Summary collapse
Instance Method Details
#building_blocks ⇒ Object
14 15 16 |
# File 'lib/workarea/configuration/content_blocks.rb', line 14 def building_blocks @building_blocks ||= [] end |
#load ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/workarea/configuration/content_blocks.rb', line 18 def load building_blocks.each do |block| Content::BlockTypeDefinition.define(&block) end # TODO remove in v3.6, this exists to help with a backwards incompatible # patch to fix copying of Workarea.config in multisite. Workarea.config.content_block_types = types Workarea.deprecation.deprecate_methods( AdministrableOptions, content_block_types: 'use Configuration::ContentBlocks.types instead' ) end |
#types ⇒ Object
6 7 8 |
# File 'lib/workarea/configuration/content_blocks.rb', line 6 def types @types ||= [] end |
#types=(values) ⇒ Object
10 11 12 |
# File 'lib/workarea/configuration/content_blocks.rb', line 10 def types=(values) @types = values end |