Sha256: 6821d9d58920b8a76e57d1f423fa2e8d2f97e840332fdb668a0810bf889805fc
Contents?: true
Size: 660 Bytes
Versions: 6
Compression:
Stored size: 660 Bytes
Contents
require 'generators/devise/views_generator' module DeviseTwoFactor module Generators class ViewsGenerator < Rails::Generators::Base desc 'Copies all Devise TwoFactor views to your application.' argument :scope, required: false, default: nil, desc: 'The scope to copy views to' include ::Devise::Generators::ViewPathTemplates source_root File.expand_path('../../../../app/views/devise_two_factor', __FILE__) def copy_views view_directory :credentials, 'app/views/devise_two_factor/credentials' view_directory :tokens, 'app/views/devise_two_factor/tokens' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems