Sha256: 23869d840d280d36d43c66e925c66094c8d7a18c26aa2c215ba4352829f751a7

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

require "generators/devise/views_generator"

module DeviseOtp
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      desc "Copies all Devise OTP 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", __FILE__)
      def copy_views
        view_directory :devise, "app/views/devise"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-otp-1.0.0 lib/generators/devise_otp/views_generator.rb
devise-otp-0.8.0 lib/generators/devise_otp/views_generator.rb
devise-otp-0.7.1 lib/generators/devise_otp/views_generator.rb
devise-otp-0.7.0 lib/generators/devise_otp/views_generator.rb
devise-otp-0.6.0 lib/generators/devise_otp/views_generator.rb
devise-otp-0.5.0 lib/generators/devise_otp/views_generator.rb