Sha256: 1a7c81d2bcc8edc8c76bc56b51207f561cfabc109e9e162c6499c110e13b4d7f
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 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.exists?(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merit-1.7.1 | lib/generators/merit/remove_generator.rb |