Sha256: 70c73905078fb315d1f7db82e79a003052d00c67116564e7858512f282eb6700
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true module MrCommon class ViewsGenerator < Rails::Generators::Base desc "Copy bare-bones view templates for overriding the ugly defaults that come with the engine." source_root File.expand_path("templates", __dir__) def copy_skeleton_views template_paths.each do |file| copy_file file, "app/views/#{file}" end end private def template_paths %w( mr_common/registrations/public/new.html.erb mr_common/registrations/success/index.html.erb mr_common/registration_mailer/confirmation.html.erb mr_common/registration_mailer/confirmation.text.erb ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems