Class: Rails::Generators::GeneratedAttribute

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#type_classObject



77
78
79
80
# File 'lib/generators/data_mapper.rb', line 77

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