21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-07 19:18:39 +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 module ChecksHelper
def check_row_class(check) def check_row_class(check)
expiry_date = check.domain_expires_at expiry_date = check.domain_expires_at
@ -50,7 +52,7 @@ module ChecksHelper
end end
def check_button_scope_class(scope = nil) 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" "btn-info active"
else else
"btn-outline-info" "btn-outline-info"