Sha256: 3b1388401a334f34d18d01e1d3e16f0888ee4dc74370ad93f46c61c0d229631b
Contents?: true
Size: 711 Bytes
Versions: 4
Compression:
Stored size: 711 Bytes
Contents
module Nopassword class InstallGenerator < Rails::Generators::Base source_root File.expand_path("templates", __dir__) def copy_controller_file copy_file "controller.rb", "app/controllers/email_authentications_controller.rb" end def copy_view_files directory NoPassword.root.join("app/views/nopassword/email_authentication_mailer"), 'app/views/email_authentication_mailer' directory NoPassword.root.join("app/views/nopassword/email_authentications"), 'app/views/email_authentications' end def add_nopassword_routes route "resource :email_authentication" end def copy_migration_file rake "nopassword_engine:install:migrations" end end end
Version data entries
4 entries across 4 versions & 1 rubygems