Permalink
Browse files

bugfix in force_canonical cookie code

  • Loading branch information...
1 parent 7743d9f commit 6f8dd66d24e9ecd6dc7d62f488a0bb894b62b08a @matthewrobertson committed Jan 29, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/ress/controller_additions.rb
  2. +1 −1 lib/ress/version.rb
  3. +1 −1 vendor/assets/javascripts/ress.js
View
2 lib/ress/controller_additions.rb
@@ -12,7 +12,7 @@ def self.included(base)
def set_force_canonical_cookie
if params[:force_canonical]
- cookies[:force_canonical] = 1
+ cookies[:force_canonical] = 'true'
end
end
View
2 lib/ress/version.rb
@@ -1,3 +1,3 @@
module Ress
- VERSION = "0.0.5"
+ VERSION = "0.0.6"
end
View
2 vendor/assets/javascripts/ress.js
@@ -52,7 +52,7 @@
this.readCookie(FORCE_COOKIE) === 'true';
};
- VersionManager.prototype.readCookie = function() {
+ VersionManager.prototype.readCookie = function(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {

0 comments on commit 6f8dd66

Please sign in to comment.