Skip to content

Instantly share code, notes, and snippets.

@jbbarth
Created March 1, 2013 18:31
Show Gist options
  • Save jbbarth/5066714 to your computer and use it in GitHub Desktop.
Save jbbarth/5066714 to your computer and use it in GitHub Desktop.
deface override to fix a problem at work
Deface::Override.new :virtual_path => 'account/login',
:name => 'fix-back-url-escape',
:insert_before => '#login-form',
:text => '<% params[:back_url] = CGI.unescape(params[:back_url]) if params[:back_url].match(/^https?%/) %>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment