Sha256: 473d0eaad94b53c963f75b1c263a69dce0731a0f538b4dfa0629fcb6265eb3ce

Contents?: true

Size: 360 Bytes

Versions: 12

Compression:

Stored size: 360 Bytes

Contents

require_dependency 'avo/application_controller'

module Avo
  class FiltersController < ApplicationController
    before_action :authorize_user

    def index
      filters = []

      avo_resource.get_filters.each do |filter|
        filters.push(filter.new.render_response)
      end

      render json: {
        filters: filters,
      }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
avo-0.4.10 app/controllers/avo/filters_controller.rb
avo-0.4.9 app/controllers/avo/filters_controller.rb
avo-0.4.8 app/controllers/avo/filters_controller.rb
avo-0.4.7 app/controllers/avo/filters_controller.rb
avo-0.4.6 app/controllers/avo/filters_controller.rb
avo-0.4.5 app/controllers/avo/filters_controller.rb
avo-0.4.4 app/controllers/avo/filters_controller.rb
avo-0.4.3 app/controllers/avo/filters_controller.rb
avo-0.4.2 app/controllers/avo/filters_controller.rb
avo-0.4.1 app/controllers/avo/filters_controller.rb
avo-0.3.2 app/controllers/avo/filters_controller.rb
avo-0.3.1 app/controllers/avo/filters_controller.rb