make_commentable 0.0.8.1.4 → 0.0.8.1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'rails/generators/migration'
|
2
2
|
|
3
3
|
class CommentGenerator < Rails::Generators::Base
|
4
|
-
include Rails::Generators::Migration
|
5
|
-
include Rails::Generators::ResourceHelpers
|
4
|
+
#include Rails::Generators::Migration
|
5
|
+
#include Rails::Generators::ResourceHelpers
|
6
6
|
|
7
7
|
source_root File.expand_path("../templates", __FILE__)
|
8
8
|
|
9
|
-
desc "Creates a make_commentable files"
|
9
|
+
#desc "Creates a make_commentable files"
|
10
10
|
|
11
11
|
def self.next_migration_number(path)
|
12
12
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
@@ -21,12 +21,12 @@ class CommentGenerator < Rails::Generators::Base
|
|
21
21
|
template "comments_controler.rb", "app/controllers/comments_controller.rb"
|
22
22
|
end
|
23
23
|
|
24
|
-
def create_views
|
25
|
-
|
26
|
-
|
27
|
-
end
|
24
|
+
#def create_views
|
25
|
+
# template "views/_comment.html.haml", "app/views/_comment.html.haml"
|
26
|
+
# template "views/_comment_form.html.haml", "app/views/_comment_form.html.haml"
|
27
|
+
#end
|
28
28
|
|
29
|
-
def create_javascripts
|
30
|
-
|
31
|
-
end
|
29
|
+
#def create_javascripts
|
30
|
+
# template "javascripts/comments.js", "app/assets/javascripts/comments/comments.js"
|
31
|
+
#end
|
32
32
|
end
|