Skip to content

Commit

Permalink
Add some documentation to the generated search builder
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 3, 2017
1 parent 81a03a9 commit 5cb9df7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydra-core/lib/generators/hydra/head_generator.rb
Expand Up @@ -57,6 +57,7 @@ def inject_hydra_controller_behavior
# Add Hydra to the SearchBuilder
def inject_hydra_search_builder_behavior
insert_into_file "app/models/search_builder.rb", after: "include Blacklight::Solr::SearchBuilderBehavior\n" do
" # Add a filter query to restrict the search to documents the current user has access to\n" \
" include Hydra::AccessControlsEnforcement\n"
end
end
Expand Down

0 comments on commit 5cb9df7

Please sign in to comment.