Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- lib/rails/generators/guacamole_generator.rb
Instance Method Summary collapse
Instance Method Details
#type_class ⇒ Object
20 21 22 23 24 25 |
# File 'lib/rails/generators/guacamole_generator.rb', line 20 def type_class return 'Time' if type == :datetime return 'String' if type == :text return 'Boolean' if type == :boolean type.to_s.camelcase end |