Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- lib/rails/generators/mongoid_generator.rb
Instance Method Summary collapse
Instance Method Details
#type_class ⇒ Object
67 68 69 70 71 |
# File 'lib/rails/generators/mongoid_generator.rb', line 67 def type_class return "Time" if type.to_s == "datetime" return "String" if type.to_s == "text" type.to_s.camelcase end |