Class: Rails::Generators::GeneratedAttribute
- Defined in:
- lib/rails/generators/ripple_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#type_class ⇒ Object
72 73 74 75 76 |
# File 'lib/rails/generators/ripple_generator.rb', line 72 def type_class return "Time" if type.to_s == "datetime" return "String" if type.to_s == "text" return type.to_s.camelcase end |