Sha256: 022bc73217941f60098cac5b5a82c8313d72fff6548acd459ad0742e6a9d796e
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module MrCommon class ControllersGenerator < Rails::Generators::Base desc "Copy controllers into the host app for customization." source_root File.expand_path(MrCommon::Engine.root) def copy_skeleton_views template_paths.each do |file| copy_file file, file end end private def template_paths %w( app/controllers/mr_common/registrations/public_controller.rb app/controllers/mr_common/registrations/success_controller.rb ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mr_common-2.0.0 | lib/generators/mr_common/controllers/controllers_generator.rb |