Fix haml-lint InstanceVariables
rule for invites/_form (#26064)
This commit is contained in:
parent
1da3c588ca
commit
e6b903b21e
5 changed files with 29 additions and 20 deletions
11
app/helpers/invites_helper.rb
Normal file
11
app/helpers/invites_helper.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module InvitesHelper
|
||||
def invites_max_uses_options
|
||||
[1, 5, 10, 25, 50, 100]
|
||||
end
|
||||
|
||||
def invites_expires_options
|
||||
[30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue