Class: TagsController

Inherits:
ApplicationController show all
Includes:
ApplicationHelper
Defined in:
app/controllers/tags_controller.rb

Instance Method Summary collapse

Methods included from AuthentificationHelper

#accessible_company_ids_from_tenant_and_user, #application_mode_from_hostname, #current_company_id_from_accessible_company_ids, #current_tenant_from_user, #current_user_and_locale_from_token

Instance Method Details

#indexObject



8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/tags_controller.rb', line 8

def index
  data = Tag.all.as_json(
    methods: [
      :tag_name
    ]
  )

  render json: {
    data: data
  }
end