# File lib/has_mobile_views/has_mobile_views_helper.rb, line 7 def switch_view_mode_link opts = {} if session[:mobile_view] text = opts[:switch_to_normal_text] || "Switch to normal version" link_to text, params.update(:force_view => 'normal'), opts[:html] else text = opts[:switch_to_normal_text] || "Switch to mobile version" link_to text, params.update(:force_view => 'mobile'), opts[:html] end end