Created
October 11, 2011 16:50
-
-
Save smathy/1278658 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/controllers/application_controller.rb:29: session[:php] = {} | |
app/controllers/application_controller.rb:33: session[:php][ k.to_sym ] = v | |
app/controllers/application_controller.rb:39: session[:php] ||= {} | |
app/controllers/application_controller.rb:50: ret = session[:php].clone | |
app/controllers/application_controller.rb:70: session[:php].present? and session[:php][:usuarioid].present? and session[:php][:seccion] == 'extranet' | |
app/controllers/application_controller.rb:94: @current_legacy_user ||= LegacyUser.find session[:php][:usuarioid] | |
app/controllers/application_controller.rb:102: @current_client ||= Client.find session[:php][:clienteid] if session[:php][:clienteid] | |
app/controllers/application_controller.rb:215: return nil unless session[:php].present? and session[:php][:tipo].present? | |
app/controllers/application_controller.rb:216: session[:php][:tipo].to_sym | |
app/controllers/course_controller.rb:66: School.school_scope( is_school?, session[:php][:escuelaid] ) | |
app/controllers/covers_controller.rb:91: @school = School.current.find( session[:php][:escuelaid] ) | |
app/controllers/user_sessions_controller.rb:36: session[:php][:current_user_id].delete | |
app/controllers/user_sessions_controller.rb:44: session[:php][:current_user_id] = current_user.id | |
app/views/layouts/parents/payments.html.haml:1:- menu = (session[:php][:seccion] == 'tiendita') ? 'online_store_menu' : 'main_menu' | |
app/views/layouts/parents/payments.html.haml:2:- image_prefix = (session[:php][:seccion] == 'tiendita') ? '/learningdepot' : '/pagos' | |
app/views/layouts/parents/payments.html.haml:7: = stylesheet_link_tag 'online_store', :media => 'all' if session[:php][:seccion] == 'tiendita' | |
app/views/layouts/parents/payments.html.haml:12:- if session[:php][:seccion] != 'tiendita' | |
test/functional/application_controller_test.rb:27: assert session[:php] = {} | |
test/functional/application_controller_test.rb:28: assert session[:php][:usuarioid] = 1000 | |
test/functional/application_controller_test.rb:38: @controller.send( :php_session ) { session[:php][:usuarioid] = expected } | |
test/functional/application_controller_test.rb:45: @controller.send( :php_session ){ session[:php][:usuarioid] = expected } | |
test/functional/application_controller_test.rb:46: assert @controller.session[:php].present? | |
test/functional/application_controller_test.rb:56: @controller.send( :php_session ){ session[:php][:usuarioid] = 1000 } | |
test/functional/application_controller_test.rb:69: @controller.send( :php_session ){ session[:php][:tipo] = expected } | |
test/functional/application_controller_test.rb:70: assert_equal expected, @controller.session[:php][:tipo] | |
test/functional/application_controller_test.rb:78: assert @controller.send( :php_session ){ session[:php][:tipo] = 'foo' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment