Wired behavior with CTRL + Enter
zedtux opened this issue · 1 comments
zedtux commented
Hello,
First wired behavior
Given the following code:
class CommentSleepingWorker
include Sidekiq::Worker
def perform
Comment.waiting.sleeping.each(&:stop_sleeping!)
end
end
When I move the cursor on top of the method
And I hit CTRL + Enter
Then I have the following:
# Description of method
#
# @return [Type] description of returned object
class CommentSleepingWorker
include Sidekiq::Worker
def perform
Comment.waiting.sleeping.each(&:stop_sleeping!)
end
end
The comment went on top of the class while I wanted it on top of the method.
Second wired behavior
Given the following code:
#
# Comment moderated as nagative are then sleeping comments.
# After 3 days, the comment is waked up and publihed to the public.
#
# This job runs one a day in production and once a minute in staging.
#
# @author Guillaume Hain
#
class CommentSleepingWorker
include Sidekiq::Worker
def perform
Comment.waiting.sleeping.each(&:stop_sleeping!)
end
end
When I move the cursor on top of the method
And I hit CTRL + Enter
Then I have the following:
# Description of method
#
# @return [Type] description of returned object
#
# Comment moderated as nagative are then sleeping comments.
# After 3 days, the comment is waked up and publihed to the public.
#
# This job runs one a day in production and once a minute in staging.
#
# @author Guillaume Hain
#
class CommentSleepingWorker
include Sidekiq::Worker
def perform
Comment.waiting.sleeping.each(&:stop_sleeping!)
end
end
The comment went on top of the class comment
zedtux commented
Apparently, repo no more maintained ... closing the issue.