mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 23:50:59 +00:00
Use __MODULE__
This commit is contained in:
parent
e873619a66
commit
1960343cba
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ defmodule LiveBeats.MediaLibrary do
|
||||||
defdelegate paused?(song), to: Song
|
defdelegate paused?(song), to: Song
|
||||||
|
|
||||||
def attach do
|
def attach do
|
||||||
LiveBeats.attach(LiveBeats.MediaLibrary, to: {Accounts, Accounts.Events.PublicSettingsChanged})
|
LiveBeats.attach(__MODULE__, to: {Accounts, Accounts.Events.PublicSettingsChanged})
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_execute({Accounts, %Accounts.Events.PublicSettingsChanged{user: user}}) do
|
def handle_execute({Accounts, %Accounts.Events.PublicSettingsChanged{user: user}}) do
|
||||||
|
|
Loading…
Reference in a new issue