lib/generators/talkie/views_generator.rb in talkie-0.3.4 vs lib/generators/talkie/views_generator.rb in talkie-0.3.5
- old
+ new
@@ -3,13 +3,18 @@
require 'rails/generators/base'
module Talkie
module Generators
class ViewsGenerator < Rails::Generators::Base
- source_root File.expand_path('../../../../app/views/talkie', __FILE__)
+ source_root File.expand_path('../../../app/views/talkie', __dir__)
def copy_views
- directory "notifications_mailer", "app/views/talkie/notifications_mailer"
+ directory 'notifications_mailer',
+ 'app/views/talkie/notifications_mailer'
+ end
+
+ def copy_comments_views
+ directory 'comments', 'app/views/talkie/comments'
end
end
end
end