Before
$ item = Project::Speaker.find(5)
$ item.class.name
> "Project::Speaker"
$ item.class.name.split('::').first
> "Project"
$ item.class.name.split('::').last
> "Speaker"
After
$ item = Project::Speaker.find(5)
$ item.class.name.deconstantize
> "Project"
$ item.class.name.demodulize
> "Speaker"