Sha256: c69e3d8dfad34a63553a1567c3f122725a0c2c0f2823660c7267a7f4531804b6

Contents?: true

Size: 261 Bytes

Versions: 8

Compression:

Stored size: 261 Bytes

Contents

Trestle.configure do |config|
  config.persistent_params << :q

  config.hook("stylesheets") do
    stylesheet_link_tag "trestle/search"
  end

  config.hook("resource.index.header", if: -> { admin.searchable? }) do
    render "trestle/search/search"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-search-0.5.1 config/initializers/trestle.rb
trestle-search-0.5.0 config/initializers/trestle.rb
trestle-search-0.5.0.pre config/initializers/trestle.rb
trestle-search-0.4.3 config/initializers/trestle.rb
trestle-search-0.4.2 config/initializers/trestle.rb
trestle-search-0.4.1 config/initializers/trestle.rb
trestle-search-0.4.0 config/initializers/trestle.rb
trestle-search-0.3.0 config/initializers/trestle.rb