Sha256: 0d4cacf00bc7efed808b9ddacdcc60f3e4c41a81f4d879b436ff0aee78f405e1
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true module MrCommon class ModelsGenerator < Rails::Generators::Base desc "Copy models 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/models/mr_common/registration.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/models/models_generator.rb |