Skip to content

Commit

Permalink
Merge pull request #589 from rbino/update-deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
davidebriani authored Sep 5, 2024
2 parents 1804817 + b4a749d commit a5d3f10
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 52 deletions.
4 changes: 4 additions & 0 deletions backend/lib/edgehog/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ defmodule Edgehog.Repo do
["ash-functions"]
end

def min_pg_version do
%Version{major: 13, minor: 0, patch: 0}
end

def fetch(queryable, id, opts \\ []) do
{error, opts} = Keyword.pop_first(opts, :error, :not_found)

Expand Down
8 changes: 4 additions & 4 deletions backend/lib/edgehog_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ defmodule EdgehogWeb do

def controller do
quote do
use Gettext, backend: EdgehogWeb.Gettext
use Phoenix.Controller, namespace: EdgehogWeb

import EdgehogWeb.Gettext
import Plug.Conn

alias EdgehogWeb.Router.Helpers, as: Routes
Expand Down Expand Up @@ -77,16 +77,16 @@ defmodule EdgehogWeb do

def channel do
quote do
use Gettext, backend: EdgehogWeb.Gettext
use Phoenix.Channel

import EdgehogWeb.Gettext
end
end

defp view_helpers do
quote do
use Gettext, backend: EdgehogWeb.Gettext

import EdgehogWeb.ErrorHelpers
import EdgehogWeb.Gettext
# Import basic rendering functionality (render, render_layout, etc)
import Phoenix.View

Expand Down
2 changes: 1 addition & 1 deletion backend/lib/edgehog_web/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ defmodule EdgehogWeb.Gettext do
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
"""
use Gettext, otp_app: :edgehog
use Gettext.Backend, otp_app: :edgehog
end
Loading

0 comments on commit a5d3f10

Please sign in to comment.