Class: TurboCrud::Generators::DoctorGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
InstallSupport
Defined in:
lib/generators/turbo_crud/doctor_generator.rb

Instance Method Summary collapse

Instance Method Details

#run_checksObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/generators/turbo_crud/doctor_generator.rb', line 26

def run_checks
  apply_fixes if options[:fix]
  @issues = 0

  # Keep output actionable and grouped so users can fix issues quickly. can be re-run after fixes to confirm. 
  say_status :check, "TurboCrud doctor", :blue
  check_layout_frames
  check_controller_includes
  check_view_partials
  print_summary
end