lib/artwork/configuration.rb in artwork-0.1.1 vs lib/artwork/configuration.rb in artwork-0.2.0

- old
+ new

@@ -55,14 +55,14 @@ def get_required(setting) get(setting) or raise "Please set #{name}.#{setting}" end def fetch_2x_images_flag_from(request) - request.cookies['_load2ximgs'].to_i > 0 + request.cookies['_retina'].to_i > 0 end def current_resolution_from(request) - browser_width = request.cookies['_bSize'].to_i + browser_width = request.cookies['_width'].to_i return default_resolution if browser_width.zero? supported_resolutions_list.each do |resolution| return resolution if browser_width <= resolution