Created
April 27, 2016 08:44
-
-
Save pareeohnos/206b8a191060dfe0bca90a5fef6a9ba8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
defimpl Canada.Can, for: Company do | |
def can?(%User{ id: user_id }, :update, %Company{}), do: true | |
end |
This file contains hidden or 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
defimpl Canada.Can, for: User do | |
def can?(%User{ id: user_id }, :update, %User{ id: user_id }), do: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment