Class: Abyme::Generators::ViewGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/abyme/view/view_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_partial_fileObject

:nocov:



12
13
14
15
16
17
18
19
# File 'lib/generators/abyme/view/view_generator.rb', line 12

def create_partial_file
  create_file partial_file_path
  if defined?(SimpleForm)
    insert_fields(:simple_form)
  else
    insert_fields
  end
end