Sha256: f70f8e96f4f5dc559df4527b935b322b9c91ec7b7e4bf2f0d820c911e9affe97

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

module MrCommon
  class ControllersGenerator < Rails::Generators::Base
    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.1.0 lib/generators/mr_common/controllers/controllers_generator.rb