Skip to content

Commit

Permalink
replaced config_for by ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Feb 19, 2015
1 parent 22ab98c commit 53d1e4b
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 222 deletions.
4 changes: 2 additions & 2 deletions app/views/manifestations/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<%- if @manifestations.total_count > 0 -%>
<p>
<%= t('page.number_of_search_results', count: @count[:query_result], numdocs: Manifestation.search.total, seconds: sprintf("%.3f", @seconds)) -%>
<%- if @count[:query_result] > Rails.application.config_for(:enju_leaf)["max_number_of_results"] -%>
<% if @count[:query_result] > ENV['ENJU_MAX_NUMBER_OF_RESULTS'] %>
<br />
<%= t('page.limit_exceeded', count: Rails.application.config_for(:enju_leaf)["max_number_of_results"]) -%>
<%= t('page.limit_exceeded', count: ENV['ENJU_MAX_NUMBER_OF_RESULTS'] %>
<%- end -%>
</p>

Expand Down
Loading

0 comments on commit 53d1e4b

Please sign in to comment.