lib/mobile_enhancements/request_helper.rb in mobile-enhancements-0.0.4 vs lib/mobile_enhancements/request_helper.rb in mobile-enhancements-0.0.5

- old
+ new

@@ -27,9 +27,14 @@ # returns what format should be used by the request def determine_format mobile_request? ? mobile_format.to_sym : request.format.to_sym end + # returns what the value of the mobile parameter should be + def mobile_param_value + mobile_request? ? mobile_path_prefix : nil + end + # strips any mobile prefix from the url def desktop_url(url = request.url) desktop_path(url) end \ No newline at end of file