Sha256: 5236e4df749ad3fcd6e1aee2ebcf9cc1d61be6a84291d3e762c8acafc0286ac4

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

module MrCommon
  class ViewsGenerator < 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/views/mr_common/registrations/public/new.html.erb
          app/views/mr_common/registrations/success/index.html.erb
        )
      end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mr_common-2.1.0 lib/generators/mr_common/views/views_generator.rb