Class: Rails::Generators::GeneratedAttribute

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#type_classObject



76
77
78
79
# File 'lib/generators/sequel.rb', line 76

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