Class: UserImpersonateGenerator

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

Instance Method Summary collapse

Instance Method Details

#configurationObject



8
9
10
# File 'lib/generators/user_impersonate/user_impersonate_generator.rb', line 8

def configuration
  directory "config"
end

#engine_routesObject



4
5
6
# File 'lib/generators/user_impersonate/user_impersonate_generator.rb', line 4

def engine_routes
  route 'mount UserImpersonate::Engine => "/impersonate", as: "impersonate_engine"'
end

#viewsObject



12
13
14
# File 'lib/generators/user_impersonate/user_impersonate_generator.rb', line 12

def views
  directory "app/views"
end