Method: ModelRecord.classname

Defined in:
lib/model/the_record.rb

.classnameObject

Returns just the name of the Class



15
16
17
# File 'lib/model/the_record.rb', line 15

def self.classname  # :nodoc:
  self.class.to_s.split(':')[-1]
end