Sha256: fa39dd86831e64356b1caba5b08cc8dcf53b1ae9b8b5be2af73ba16e89fbe8c1

Contents?: true

Size: 579 Bytes

Versions: 10

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

ActiveElement::Engine.routes.draw do
  ActiveElement.eager_load_controllers
  ActiveElement.eager_load_models

  ActiveElement::ApplicationController.descendants.map do |descendant|
    post "#{descendant.controller_path}/_active_element_text_search",
         controller: descendant.controller_path,
         action: '_active_element_text_search'

    # Permissions for text search are managed by ActiveElement::Components::TextSearch::Authorization
    descendant.active_element.permit_action :_active_element_text_search, always: true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_element-0.0.31 config/routes.rb
active_element-0.0.30 config/routes.rb
active_element-0.0.29 config/routes.rb
active_element-0.0.28 config/routes.rb
active_element-0.0.27 config/routes.rb
active_element-0.0.26 config/routes.rb
active_element-0.0.24 config/routes.rb
active_element-0.0.23 config/routes.rb
active_element-0.0.22 config/routes.rb
active_element-0.0.21 config/routes.rb