Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Working around a regression in Rails

  • Loading branch information...
commit efc07fafbea740ee859c207fe49aec1c8e4f8774 1 parent 6a1d59e
@davout authored
View
2  app/assets/stylesheets/jquery.fancybox.css.scss
@@ -35,7 +35,7 @@
left: 0;
width: 40px;
height: 480px;
- background-image: image-url('/fancybox/fancybox.png');
+ background-image: image-url('fancybox/fancybox.png');
}
#fancybox-overlay {
View
10 config/initializers/monkey_patches.rb
@@ -0,0 +1,10 @@
+# https://github.com/rails/rails/issues/2483
+# https://github.com/rails/rails/issues/3047
+
+class ActionDispatch::Session::AbstractStore
+ def call(env)
+ # the only place I could find that knows how to mutate out the `:all` was the CookieJar, so we use that before Rack gets an invalid :domain
+ ActionDispatch::Request.new(env).cookie_jar.handle_options(@default_options)
+ super
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.