Sha256: f23186021fa39aac094c8ca555fd6a92a512d3fa014cecee9c7c5c9924f20150
Contents?: true
Size: 358 Bytes
Versions: 21
Compression:
Stored size: 358 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
21 entries across 21 versions & 1 rubygems