Method: Scrivito::AttributeContent#obj_class

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

#obj_classString

Returns the object class name of this CMS object.

Examples:

BlogPost.all.first.obj_class
#=> "BlogPost"
FrenchBlog::BlogPost.all.first.obj_class
#=> "FrenchBlog::BlogPost"

GermanBlog::BlogPost.all.first.obj_class
#=> "GermanBlog::BlogPost"

Returns:

  • (String)


199
200
201
# File 'app/cms/scrivito/attribute_content.rb', line 199

def obj_class
  data_from_cms.value_of('_obj_class')
end