Created
October 3, 2018 00:45
-
-
Save Ninigi/5c5eec16b0c780c40a7712381f4a5212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule UselessWeb.ShopController do | |
# ... | |
def new(conn, %{"shop" => shop_name}) when is_bitstring(shop_name), | |
do: signup(conn, %{"shop" => %{"shopify_domain" => shop_name}}) | |
def new(conn, _params) do | |
changeset = ShopifyApp.change_shop(%Shop{}) | |
render(conn, "new.html", changeset: changeset) | |
end | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment