Skip to content

Instantly share code, notes, and snippets.

require 'dm-migrations'
require 'migration_runner'
module DataMapper
module Types
class TagCollection < DataMapper::Type
primitive String
def self.load(value, property)
value.split(', ').to_a
end
@rhyhann
rhyhann / gist:28154
Created November 23, 2008 16:56 — forked from sr/gist:28153
#!/usr/bin/env ruby
base = File.dirname(__FILE__) + "/../code/git-wiki"
require base + '/git-wiki'
set :public, base + '/public'
set :port, 4567
set :env, :production
disable :run, :reload