Sha256: ffa129e5af97ddd550cfaeb6cb66d9055110b812d40e6fe9ccc3b942e3b723ca

Contents?: true

Size: 938 Bytes

Versions: 2

Compression:

Stored size: 938 Bytes

Contents

module WebammToRails
  module Sources
    module Views
      module Devise
        module Otp
          class Presenter
            def collection
              base_path = "app/views/devise/"
              templates = [
                'otp_credentials/show.html.erb',
                'otp_credentials/refresh.html.erb',
                'otp_tokens/_token_secret.html.erb',
                'otp_tokens/_trusted_devices.html.erb',
                'otp_tokens/edit.html.erb',
                'otp_tokens/recovery_codes.html.erb',
                'otp_tokens/recovery.html.erb',
                'otp_tokens/show.html.erb'
              ]

              templates.map do |template|
                {
                  path: base_path + template,
                  content: File.read(File.expand_path("templates/#{template}", __dir__))
                }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webamm_to_rails-7.0.1 lib/webamm_to_rails/sources/views/devise/otp/presenter.rb
webamm_to_rails-7.0.0 lib/webamm_to_rails/sources/views/devise/otp/presenter.rb