Class: Rails::Generators::GeneratedAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/rspec.rb

Instance Method Summary collapse

Instance Method Details

#input_typeObject



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