Skip to content

Instantly share code, notes, and snippets.

View iterion's full-sized avatar

Adam Sunderland iterion

View GitHub Profile
@iterion
iterion / audit.rb
Last active December 11, 2015 23:28 — forked from adamstrickland/audit.rb
class Audit
include Mongoid::Document
include Mongoid::Timestamps
include RailsAdminImport::Import
class << self
def create_with_type_message_meta(_type, _message, _user)
self.create_without_type_message_meta({
:type => _type,
:content => _message,