Module: Cms::Behaviors::Connecting::ClassMethods

Defined in:
lib/cms/behaviors/connecting.rb

Instance Method Summary collapse

Instance Method Details

#content_block_typeObject



29
30
31
# File 'lib/cms/behaviors/connecting.rb', line 29

def content_block_type
  to_s.underscore
end

#display_nameObject



32
33
34
# File 'lib/cms/behaviors/connecting.rb', line 32

def display_name
  to_s.titleize
end

#display_name_pluralObject



35
36
37
# File 'lib/cms/behaviors/connecting.rb', line 35

def display_name_plural
  display_name.pluralize
end