Skip to content

Commit

Permalink
Models should be generated, not stored in the plugin so that they can…
Browse files Browse the repository at this point in the history
… be modified.
  • Loading branch information
chriseppstein committed May 19, 2009
1 parent 8385700 commit e5dae3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions generators/comment/comment_generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CommentGenerator < Rails::Generator::Base
def manifest
record do |m|
m.directory('app/models')
m.file('comment.rb', 'app/models/comment.rb')
end
end
end
File renamed without changes.
3 changes: 2 additions & 1 deletion install.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Install hook code here
puts "To create the comment model please run:"
puts "script/generate comment"

0 comments on commit e5dae3f

Please sign in to comment.