Skip to content

Commit

Permalink
Add generator stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
MSch committed Sep 12, 2010
1 parent dbb28c1 commit ebe588d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/generators/devise/USAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Description:
Generates for the model with the given NAME a migration file and devise-twitter routes.

Example:
rails generate devise:twitter User

This will create:
what/will/it/create
7 changes: 7 additions & 0 deletions lib/generators/devise/twitter_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Devise
module Generators
class TwitterGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
end
end
end

0 comments on commit ebe588d

Please sign in to comment.