Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- ripple/lib/rails/generators/ripple_generator.rb
Overview
:nodoc:
Instance Method Summary (collapse)
Instance Method Details
- (Object) type_class
84 85 86 87 88 |
# File 'ripple/lib/rails/generators/ripple_generator.rb', line 84 def type_class return "Time" if type.to_s == "datetime" return "String" if type.to_s == "text" return type.to_s.camelcase end |