Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Created July 28, 2008 16:16
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 jnicklas/2909 to your computer and use it in GitHub Desktop.
Save jnicklas/2909 to your computer and use it in GitHub Desktop.
module Merb::Generators
class DatamapperModelGenerator < ComponentGenerator
# do stuff here
end
add_private :datamapper_model
ModelGenerator.invoke :datamapper_model, :orm => :datamapper
end
# stuff oading the rest of the merb-datamapper plugin
Merb.add_generator 'datamapper_model_generator.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment