class Rails::Generators::GeneratedAttribute

Public Instance Methods

type_class() click to toggle source
# File lib/rails/generators/mongoid_generator.rb, line 57
def type_class
  return "Time" if type.to_s == "datetime"
  return "String" if type.to_s == "text"
  type.to_s.camelcase
end