Skip to content

Instantly share code, notes, and snippets.

@leucos
Created March 30, 2012 21:51
Show Gist options
  • Select an option

  • Save leucos/2255639 to your computer and use it in GitHub Desktop.

Select an option

Save leucos/2255639 to your computer and use it in GitHub Desktop.
Ruby croaks on composition
class Record < Sequel::Model
many_to_one :domain
plugin :validation_helpers, :composition
composition :serial,
:composer => proc { split(content) if type == 'SOA' },
:decomposer => (
proc do
....
$ ramaze console
Middlewares for spec
I [2012-03-30 23:37:15 $31139] INFO | : Environment not set; using dev mode
I [2012-03-30 23:37:15 $31139] INFO | : We start in dev mode
/home/leucos/dev/sysadmin/pdnsui/model/record.rb:5:in `<class:Record>': undefined method `composition' for Record:Class (NoMethodError)
from /home/leucos/dev/sysadmin/pdnsui/model/record.rb:1:in `<top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment