Class: UserPlane::Generators::View::InvitesGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- UserPlane::Generators::View::InvitesGenerator
- Includes:
- Helpers
- Defined in:
- lib/generators/user_plane/view/invites_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#copy_view_files ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/user_plane/view/invites_generator.rb', line 10 def copy_view_files create_root_folder view_for_resource :new, 'send_sign_up_invite', ['recipient:string'] #TODO: add a hidden field for the invite code view_for_resource :edit, 'sign_up_with_invite', ['user_name:string', 'email:string', 'password:password', 'password_confirmation:password'] end |