Skip to content

Instantly share code, notes, and snippets.

@mattknox
Created November 16, 2008 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattknox/25507 to your computer and use it in GitHub Desktop.
Save mattknox/25507 to your computer and use it in GitHub Desktop.
bash-3.2$ ./bin/goaloc
Loading goaloc gem
>> route [:panels, [:topics, [:questions, :comments]]], :invitations, :invitation_groups Panel Panel
Topic PanelTopic
Question PanelTopicQuestion
Comment PanelTopicQuestionComment
Invitation Invitation
InvitationGroup InvitationGroup
=> [[:panels, [:topics, [:questions, :comments]]], :invitations, :invitation_groups]
>> add_attrs :topics => "title:string body:text", :questions => "body:string", :comments => "body:string", :invitation_groups => "name:string panelnym_prefix:string target_headcount:integer", :invitations => "state:string recipient:string"
=> {:invitation_groups=>"name:string panelnym_prefix:string target_headcount:integer", :topics=>"title:string body:text", :comments=>"body:string", :questions=>"body:string", :invitations=>"state:string recipient:string"}
>> @app.name = "panels"
=> "panels"
>> generate
=> [InvitationGroup, Panel, Topic, Comment, Question, Invitation]
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment