Skip to content

Instantly share code, notes, and snippets.

(function () {
var cleanPath, newUrl,
location = window.location,
history = window.history;
if (history && history.pushState) {
cleanPath = ['pathname', 'search', 'hash'].map(function (key) {
return location[key].replace(/@.+\.[A-Z]{2}/ig, '');
}).join('');
newUrl = location.protocol + '//' + location.host + cleanPath;
@richardroyal
richardroyal / gist:7550560
Created November 19, 2013 18:58
Bug involving ActiveAdmin, MetaSearch, ActiveUUID (Rails 3.2, Ruby 1.9.3)

rotation.rb

class Rotation < ActiveRecord::Base
  include ActiveUUID::UUID

  has_one :background_check
.
.
.