Skip to content
Create a gist now

Instantly share code, notes, and snippets.

module Shogun
module Once
class OnceRecord < Sequel::Model
Sequel.extension :pg_array
DB.extend Sequel::Postgres::PGArray::DatabaseMethods
unrestrict_primary_key
end
def self.ever(*arguments, &blk)
OnceRecord.create(signature: signature(arguments), arguments: arguments.pg_array)
end
def self.signature(*arguments)
signature = arguments.join(' ')
end
end
end
@pvh
Owner
pvh commented May 2, 2012

ERROR: missing dimension value at character 73
STATEMENT: INSERT INTO "once_records" ("signature", "arguments") VALUES ('sample', '["sample"]') RETURNING *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.