This line needs to detect the Rails version or check that the scope responds to :load