Module: CompositeContent::Model::Blockable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Blocks::Heading, Blocks::Quote, Blocks::Text
- Defined in:
- lib/composite_content/model/blockable.rb
Overview
Shared behaviors for concrete block implementations
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#block_type ⇒ Object
16 17 18 |
# File 'lib/composite_content/model/blockable.rb', line 16 def block_type self.class.name.demodulize.underscore end |