Class: Rails::Generators::GeneratedAttribute

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

Instance Method Summary collapse

Instance Method Details

#input_typeObject



22
23
24
25
26
27
28
# File 'lib/generators/rspec.rb', line 22

def input_type
  @input_type ||= if type == :text
    "textarea"
  else
    "input"
  end
end