Skip to content

Commit

Permalink
Merge pull request #1281 from projectblacklight/remove-user-resource-…
Browse files Browse the repository at this point in the history
…method

Remove unused #request_is_for_user_resource? method
  • Loading branch information
jcoyne committed Nov 4, 2015
2 parents b358c1d + 41a4603 commit dbdd77f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/controllers/concerns/blacklight/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ module Blacklight::Controller

# handle basic authorization exception with #access_denied
rescue_from Blacklight::Exceptions::AccessDenied, :with => :access_denied

helper_method :request_is_for_user_resource?


# extra head content
helper_method :has_user_authentication_provider?
helper_method :blacklight_config
Expand Down Expand Up @@ -76,15 +74,6 @@ def search_facet_url options = {}
def searches_from_history
session[:history].blank? ? Search.none : Search.where(:id => session[:history]).order("updated_at desc")
end

#
# Controller and view helper for determining if the current url is a request for a user resource
#
def request_is_for_user_resource?
request.env['PATH_INFO'] =~ /\/?users\/?/
end



# Should be provided by authentication provider
# def current_user
Expand Down

0 comments on commit dbdd77f

Please sign in to comment.