Class: WcmsComponents::TagsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/wcms_components/tags_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
# File 'app/controllers/wcms_components/tags_controller.rb', line 6

def index
  @tags = Tag.by_type('object').custom_search(params[:q]).limit(10)
  render json: @tags.to_json(only: [:tag])
end