Add first step of creating an Article
This commit is contained in:
@ -6,7 +6,7 @@ defmodule Outlook.Articles do
|
||||
import Ecto.Query, warn: false
|
||||
alias Outlook.Repo
|
||||
|
||||
alias Outlook.Articles.Article
|
||||
alias Outlook.Articles.{Article,RawHtmlInput}
|
||||
|
||||
@doc """
|
||||
Returns the list of articles.
|
||||
@ -101,4 +101,8 @@ defmodule Outlook.Articles do
|
||||
def change_article(%Article{} = article, attrs \\ %{}) do
|
||||
Article.changeset(article, attrs)
|
||||
end
|
||||
|
||||
def change_raw_html_input(%RawHtmlInput{} = raw_html_input, attrs \\ %{}) do
|
||||
RawHtmlInput.changeset(raw_html_input, attrs)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user