Sha256: a8ab15d39333b9f07dd92785ab72ac025b68a6fa8eba3b1cc093a8d62e76ef99

Contents?: true

Size: 545 Bytes

Versions: 16

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

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

  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

16 entries across 16 versions & 1 rubygems

Version Path
active_element-0.0.19 config/routes.rb
active_element-0.0.18 config/routes.rb
active_element-0.0.17 config/routes.rb
active_element-0.0.16 config/routes.rb
active_element-0.0.15 config/routes.rb
active_element-0.0.14 config/routes.rb
active_element-0.0.13 config/routes.rb
active_element-0.0.12 config/routes.rb
active_element-0.0.11 config/routes.rb
active_element-0.0.10 config/routes.rb
active_element-0.0.9 config/routes.rb
active_element-0.0.8 config/routes.rb
active_element-0.0.7 config/routes.rb
active_element-0.0.6 config/routes.rb
active_element-0.0.5 config/routes.rb
active_element-0.0.4 config/routes.rb