Sha256: 75ae0fe3f41665046e218cd431d8a4109cdc9995931ebaf70401c2ac81bdca27
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
require 'generators/rom' module ROM module Generators class MapperGenerator < Base def create_mapper_file template( 'mapper.rb.erb', File.join('app', 'mappers', "#{file_name.singularize}_mapper.rb") ) end private def model_name class_name.singularize end def relation class_name.pluralize.underscore end end end end
Version data entries
4 entries across 4 versions & 1 rubygems