Sha256: bae0e35ef8935d067fef9117cc6366f3970d5391f9a3491c269cc8c73d46afe9

Contents?: true

Size: 185 Bytes

Versions: 16

Compression:

Stored size: 185 Bytes

Contents

class RolesController < ApplicationController
  respond_to :json

  def index
    respond_to do |format|
      format.json { render json: User.distinct.pluck(:role) }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev app/controllers/roles_controller.rb
aleph_analytics-0.4.8 app/controllers/roles_controller.rb
aleph_analytics-0.4.7 app/controllers/roles_controller.rb
aleph_analytics-0.4.4 app/controllers/roles_controller.rb
aleph_analytics-0.4.2 app/controllers/roles_controller.rb
aleph_analytics-0.4.1 app/controllers/roles_controller.rb
aleph_analytics-0.3.0 app/controllers/roles_controller.rb
aleph_analytics-0.2.0 app/controllers/roles_controller.rb
aleph_analytics-0.1.0 app/controllers/roles_controller.rb
aleph_analytics-0.0.6 app/controllers/roles_controller.rb
aleph_analytics-0.0.5 app/controllers/roles_controller.rb
aleph_analytics-0.0.4 app/controllers/roles_controller.rb
aleph_analytics-0.0.3 app/controllers/roles_controller.rb
aleph_analytics-0.0.2 app/controllers/roles_controller.rb
aleph_analytics-0.0.1.alpha app/controllers/roles_controller.rb
aleph_analytics-0.0.0.alpha app/controllers/roles_controller.rb