Skip to content

Commit 955b820

Browse files
committed
Reviewdog
1 parent 9f5609d commit 955b820

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.erb-lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ linters:
1010
rule_set:
1111
- deprecated: ["bookmarks", "collections", "readings", "works"]
1212
suggestion: "Avoid the plural form of these classes."
13+
RequireInputAutocomplete:
14+
enabled: false
1315
Rubocop:
1416
enabled: true
1517
rubocop_config:

app/models/admin_setting.rb

+4-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ class << self
5555

5656
# run hourly with the resque scheduler
5757
def self.check_queue
58-
if self.invite_from_queue_enabled? && InviteRequest.count > 0
59-
if Time.current >= self.invite_from_queue_at
60-
new_time = Time.current + self.invite_from_queue_frequency.hours
61-
self.first.update_attribute(:invite_from_queue_at, new_time)
62-
InviteFromQueueJob.perform_now(count: invite_from_queue_number)
63-
end
58+
if self.invite_from_queue_enabled? && InviteRequest.count > 0 && Time.current >= self.invite_from_queue_at
59+
new_time = Time.current + self.invite_from_queue_frequency.hours
60+
self.first.update_attribute(:invite_from_queue_at, new_time)
61+
InviteFromQueueJob.perform_now(count: invite_from_queue_number)
6462
end
6563
end
6664

app/views/admin/admin_invitations/index.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<dd><%= select_tag "invitation[user_group]", "<option>All</option><option>With no unused invitations</option>".html_safe %></dd>
4242
<dt class="landmark"><%= t(".grant_to_users.submit_landmark") %></dt>
4343
<dd class="submit actions"><%= submit_tag t(".grant_to_users.submit") %></dd>
44+
</dl>
4445
</fieldset>
4546
<% end %>
4647

0 commit comments

Comments
 (0)