Sha256: 3a10575564556b00e1a29954189ce1612e653a134be24855235ca41539779e0f
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
module DeviseInstant2fa module Views module Helpers def instant2fa_settings_view(resource) instant2fa_javascript_tag resource.instant2fa_settings_url end def instant2fa_verification_form(resource_name, url) form_tag([resource_name, :two_factor_authentication], :method => :put) do instant2fa_javascript_tag url end end private def instant2fa_javascript_tag(uri) javascript_include_tag 'https://js.instant2fa.com/hosted.js', class: 'instant2fa-page', 'data-uri' => uri end end end end
Version data entries
3 entries across 3 versions & 1 rubygems