Sha256: 83130877b13d18607dc3b6f3f43e11aca8fd2293aba137efd839c2e437d533b2
Contents?: true
Size: 357 Bytes
Versions: 4
Compression:
Stored size: 357 Bytes
Contents
# frozen_string_literal: true module Rails module Generators class RepresenterGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("../templates", __FILE__) def copy_representer_file template "representer.tt", File.join("app/representers", class_path, "#{file_name}_representer.rb") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems