Class: WcmsComponents::TagsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- WcmsComponents::TagsController
- Defined in:
- app/controllers/wcms_components/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |