Project

General

Profile

Revision c80f3b10

Added by Tom Caspy over 7 years ago

fixes #7230 - rails 4 compatibility

View differences:

app/controllers/image_search_controller.rb
1 1
class ImageSearchController < ::ApplicationController
2 2
  before_filter :find_resource
3 3

  
4
  # this is incredibly odd. for some reason, rails sees the
5
  # requests ImageSearchControllerTest makes as requests from another host
6
  # thus, violating CSRF.
7
  protect_from_forgery :only => :nothing if Rails.env.test?
8

  
4 9
  def auto_complete_repository_name
5 10
    catch_network_errors do
6 11
      text = if use_hub?

Also available in: Unified diff