Render a little bit less in the IntegrationSessionsController
This commit is contained in:
parent
24ece551f9
commit
84eb8a7063
2 changed files with 4 additions and 2 deletions
|
|
@ -44,6 +44,8 @@ require File.join(File.dirname(__FILE__), "integration_sessions_controller")
|
|||
|
||||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "support", "fake_redis")
|
||||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "helper_methods")
|
||||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "support","no_id_on_object")
|
||||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "support","i18n_raise_errors")
|
||||
require File.join(File.dirname(__FILE__), "..", "..", "spec", "support","user_methods")
|
||||
include HelperMethods
|
||||
Before do
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
class IntegrationSessionsController < ApplicationController
|
||||
class IntegrationSessionsController < ActionController::Base
|
||||
def new
|
||||
@user_id = params[:user_id]
|
||||
render 'features/support/integration_sessions_form'
|
||||
render 'features/support/integration_sessions_form', :layout => false
|
||||
end
|
||||
def create
|
||||
sign_in_and_redirect User.find(params[:user_id])
|
||||
|
|
|
|||
Loading…
Reference in a new issue