Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- lib/generators/rspec.rb,
lib/generators/datamapper.rb,
lib/generators/mongomapper.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#input_type ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/generators/rspec.rb', line 16 def input_type @input_type ||= if type == :text "textarea" else "input" end end |
#type_class ⇒ Object
74 75 76 77 |
# File 'lib/generators/datamapper.rb', line 74 def type_class return 'DateTime' if type.to_s == 'datetime' return type.to_s.camelcase end |