Sha256: b6ecdaad161283ed4bc67e0f9d81469db1db62473aae8a523028983142e94282

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

module ReportsKit
  class FiltersController < ReportsKit::BaseController
    before_action :modify_context_params

    def autocomplete
      properties = Reports::Properties.generate(self)
      results = Reports::GenerateAutocompleteResults.new(params, properties, context_record: context_record).perform
      render json: { data: results }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reports_kit-0.7.1 lib/reports_kit/filters_controller.rb
reports_kit-0.7.0 lib/reports_kit/filters_controller.rb
reports_kit-0.5.0 lib/reports_kit/filters_controller.rb
reports_kit-0.4.1 lib/reports_kit/filters_controller.rb
reports_kit-0.4.0 lib/reports_kit/filters_controller.rb