Class: InstagramConnect::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/instagram_connect/views_generator.rb

Overview

rails g instagram_connect:views — copy the engine's views into the host app so they can be restyled to the app's own design system.

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



10
11
12
13
# File 'lib/generators/instagram_connect/views_generator.rb', line 10

def copy_views
  directory "instagram_connect", "app/views/instagram_connect"
  directory "layouts/instagram_connect", "app/views/layouts/instagram_connect"
end