Method: Scrivito::AttributeContent#obj_class_name

Defined in:
app/cms/scrivito/attribute_content.rb

#obj_class_nameString

Deprecated.

Use #obj_class instead.

Returns the object class name of this CMS object.

Returns:

  • (String)


176
177
178
179
180
181
182
# File 'app/cms/scrivito/attribute_content.rb', line 176

def obj_class_name
  Scrivito::Deprecation.warn(
    'Scrivito::BasicObj#obj_class_name and Scrivito::BasicWidget#obj_class_name are deprecated'\
    ' and will be removed in a future version.'\
    ' Please use Scrivito::BasicObj#obj_class and Scrivito::BasicWidget#obj_class instead.')
  obj_class
end