Skip to content

Instantly share code, notes, and snippets.

View magicmarkker's full-sized avatar

Mark Hunt magicmarkker

  • Philadelphia, PA
View GitHub Profile
module Auditable
extend ActiveSupport::Concern
# @TODO: Figure out a way around this?
# This causes the session to not exist in rspec
included do
if Rails.env != "test"
audited except: [:heartbeat, :try], allow_mass_assignment: true
end
end
@magicmarkker
magicmarkker / gist:309bcee507dd7b770768
Created December 16, 2014 15:41
modify cpus and mem
config.vm.network :forwarded_port, guest: 3000, host: 3000
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.provider :virtualbox do |vm|
vm.customize ["modifyvm", :id, "--name", project]
vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
host = RbConfig::CONFIG['host_os']