Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
add generator for rails 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Beekman committed Jan 16, 2010
1 parent 2478473 commit 11dea50
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/generators/navvy_generator.rb
@@ -0,0 +1,16 @@
require 'rails/generators'
class NavvyGenerator < Rails::Generators::Base

def self.source_root
File.join(File.dirname(__FILE__), '..', '..', 'generators', 'navvy', 'templates')
end


def install_navvy
copy_file(
'migration.rb',
'db/migrate/create_navvy_table.rb'
)
end

end

0 comments on commit 11dea50

Please sign in to comment.