|
|
@ -26,9 +26,11 @@ class Hack < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
|
|
def code
|
|
|
|
def code
|
|
|
|
if hack_codes.count == 1
|
|
|
|
if hack_codes.count == 1
|
|
|
|
tran_base64_decode64(hack_codes.first.code)
|
|
|
|
#tran_base64_decode64(hack_codes.first.code)
|
|
|
|
|
|
|
|
hack_codes.first.code
|
|
|
|
else
|
|
|
|
else
|
|
|
|
tran_base64_decode64(hack_codes.pluck(:code))
|
|
|
|
#tran_base64_decode64(hack_codes.pluck(:code))
|
|
|
|
|
|
|
|
hack_codes.pluck(:code)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|