Class: UserImpersonateGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UserImpersonateGenerator
- Defined in:
- lib/generators/user_impersonate/user_impersonate_generator.rb
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
8 9 10 |
# File 'lib/generators/user_impersonate/user_impersonate_generator.rb', line 8 def configuration directory "config" end |
#engine_routes ⇒ Object
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 |
#views ⇒ Object
12 13 14 |
# File 'lib/generators/user_impersonate/user_impersonate_generator.rb', line 12 def views directory "app/views" end |