Class: Rails::Generators::GeneratedAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/data_mapper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#type_classObject



75
76
77
78
# File 'lib/generators/data_mapper.rb', line 75

def type_class
  return 'DateTime' if type.to_s == 'datetime'
  return type.to_s.camelcase
end