Created
April 15, 2011 03:55
-
-
Save jimwhimpey/921115 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WFModule | |
include DataMapper::Resource | |
storage_names[:default] = 'Modules' | |
property :id, Serial, :field => 'ModuleID' | |
property :module_name, String, :field => 'ModuleName' | |
property :module_fields, String, :field => 'ModuleFields' | |
property :parameters, String, :field => 'ModuleParameters' | |
property :author, String, :field => 'ModuleAuthor' | |
property :issue, String, :field => 'ModuleIssue' | |
property :deprecated, String, :field => 'ModuleDeprecated' | |
property :functional_spec, String, :field => 'ModuleFunctionalSpec' | |
end | |
@modules = WFModule.all(:repository => :default) | |
#=> Table 'wf_documentation.wf_modules' doesn't exist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment