class Hello::UsersGenerator
Public Instance Methods
append_the_routes()
click to toggle source
# File lib/generators/hello/users/users_generator.rb, line 8 def append_the_routes route %( resources :users, only: [:index, :show, :new, :create] do collection do get 'list' end member do post 'impersonate' end end ) end
copy_the_files()
click to toggle source
# File lib/generators/hello/users/users_generator.rb, line 4 def copy_the_files directory 'app' end