Sha256: 8a1e0d24348ca48d781f1257d14ebe9d049f0fb8d8b2e3af0440532a58b6c29b
Contents?: true
Size: 401 Bytes
Versions: 13
Compression:
Stored size: 401 Bytes
Contents
module Merit module Generators class RemoveGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) hook_for :orm private def model_exists? File.exist? File.join(destination_root, model_path) end def model_path @model_path ||= File.join('app', 'models', "#{file_path}.rb") end end end end
Version data entries
13 entries across 13 versions & 1 rubygems