21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-26 14:00:50 +02:00

ChecksHelper frozen_string_literal: true

This commit is contained in:
Colin Darie 2018-07-05 10:09:05 +02:00
parent e5db8f1b96
commit 900bdb8b1e
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ChecksHelper
def check_row_class(check)
expiry_date = check.domain_expires_at
@ -50,7 +52,7 @@ module ChecksHelper
end
def check_button_scope_class(scope = nil)
"btn btn-sm " << if scope && scoped_with?(scope)
"btn btn-sm " + if scope && scoped_with?(scope)
"btn-info active"
else
"btn-outline-info"