Packages

This is a CMS written in Elixir. Aims to be the great open-source ecommerce and/or startup solution for those who are searching for a performance and stability on top of modern technologies like React and Elixir.

Current section

Files

Jump to
lyn web views user_view.ex
Raw

web/views/user_view.ex

defmodule Lyn.UserView do
use Lyn.Web, :view
def roles_for_select(roles) do
roles
|> Enum.map(&["#{&1.name}": &1.id])
|> List.flatten
end
end