Class: Mongoid_Commentable::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Mongoid_Commentable::Generators::InstallGenerator
- Defined in:
- lib/generators/mongoid_commentable/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_model ⇒ Object
13 14 15 |
# File 'lib/generators/mongoid_commentable/install_generator.rb', line 13 def copy_model template "models/comment.rb", "app/models/comment.rb" end |
#copy_views ⇒ Object
9 10 11 |
# File 'lib/generators/mongoid_commentable/install_generator.rb', line 9 def copy_views directory "views/comments", "app/views/#{scope || :comments}" end |