Class: Merit::Generators::MeritGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/merit/merit_generator.rb

Instance Method Summary collapse

Instance Method Details

#inject_merit_contentObject


7
8
9
10
11
# File 'lib/generators/merit/merit_generator.rb', line 7

def inject_merit_content
  if model_exists?
    inject_into_class(model_path, class_name, "  has_merit\n\n")
  end
end