Class: Rails::Generators::GeneratedAttribute

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) input_type



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