Skip to content

Commit

Permalink
fix: use Igniter.Project.Module.parse to get module names for generat…
Browse files Browse the repository at this point in the history
…or (#274)
  • Loading branch information
barnabasJ authored Dec 12, 2024
1 parent 18f4772 commit db95e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ash_phoenix/gen/live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ defmodule AshPhoenix.Gen.Live do
@moduledoc false

def generate_from_cli(%Igniter{} = igniter, options) do
domain = Keyword.fetch!(options, :domain) |> String.to_existing_atom()
resource = Keyword.fetch!(options, :resource) |> String.to_existing_atom()
domain = Keyword.fetch!(options, :domain) |> Igniter.Project.Module.parse()
resource = Keyword.fetch!(options, :resource) |> Igniter.Project.Module.parse()
resource_plural = Keyword.fetch!(options, :resourceplural)
opts = []

Expand Down

0 comments on commit db95e65

Please sign in to comment.