Sha256: 4852dd92b4566815dacc7b8a2b3d2962dd39261b47e5365d001f3926f8c0980b

Contents?: true

Size: 220 Bytes

Versions: 223

Compression:

Stored size: 220 Bytes

Contents

json.data do
  json.array! @roles do |d|
    json.id d.id
    json.name d.name
    json.permissions d.permissions.select("distinct clazz").map{|d| d.clazz}.join("、")
  end
end

json.code 0
json.count @roles.total_count

Version data entries

223 entries across 223 versions & 1 rubygems

Version Path
educode_sales-0.9.72 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.71 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.70 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.69 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.68 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.67 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.66 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.65 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.64 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.63 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.62 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.61 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.60 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.59 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.58 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.57 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.56 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.55 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.54 app/views/educode_sales/roles/index.json.jbuilder
educode_sales-0.9.53 app/views/educode_sales/roles/index.json.jbuilder