Method: AppchatGenerator#swap_class_in_layout

Defined in:
lib/generators/appchat/appchat_generator.rb

#swap_class_in_layoutObject



94
95
96
97
98
99
100
101
102
# File 'lib/generators/appchat/appchat_generator.rb', line 94

def swap_class_in_layout
  layout_file = "app/views/layouts/application.html.erb"

  if File.exist?(layout_file)
    gsub_file layout_file, /\bmt-28\b/, "mt-10"
  else
    say "Layout file not found. No changes were made.", :red
  end
end