Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 01:40:29 +01:00
12 Zeilen
301 B
Ruby
12 Zeilen
301 B
Ruby
class CustomWizard::ItemsController < ::ApplicationController
|
|
def search
|
|
search_params = {
|
|
name: params[:name],
|
|
value: params[:value] || '',
|
|
limit: params[:limit] || 5
|
|
}
|
|
items = CustomWizard::Item.search(search_params)
|
|
|
|
render json: MultiJson.dump(items)
|
|
end
|
|
end
|