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

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

Instance Method Summary collapse

Instance Method Details

#content_block_typeObject



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

def content_block_type
  ActiveModel::Naming.singular(self)
end

#display_nameObject



38
39
40
# File 'lib/cms/behaviors/connecting.rb', line 38

def display_name
  Connecting.default_naming_for(self)
end

#display_name_pluralObject



41
42
43
# File 'lib/cms/behaviors/connecting.rb', line 41

def display_name_plural
  display_name.pluralize
end