Skip to content

Commit

Permalink
Remove reference to deleted generator file (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
puffo committed Jun 17, 2023
1 parent a0a245a commit 5752903
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ end

Override `passwordless`' bundled views by adding your own. You can manually copy the specific views that you need or copy them to your application with `rails generate passwordless:views`.

`passwordless` has 2 action views and 1 mailer view:
`passwordless` has 1 action view and 1 mailer view:

```sh
# the form where the user inputs their email address
app/views/passwordless/sessions/new.html.erb
# shown after a user requests a magic link
app/views/passwordless/sessions/create.html.erb
# the mail with the magic link that gets sent
app/views/passwordless/mailer/magic_link.text.erb
```
Expand Down
1 change: 0 additions & 1 deletion lib/generators/passwordless/views_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ViewsGenerator < Rails::Generators::Base
def install
copy_file("mailer/magic_link.text.erb", "app/views/passwordless/mailer/magic_link.text.erb")
copy_file("sessions/new.html.erb", "app/views/passwordless/sessions/new.html.erb")
copy_file("sessions/create.html.erb", "app/views/passwordless/sessions/create.html.erb")
end
end
end
Expand Down

0 comments on commit 5752903

Please sign in to comment.