Class: Merit::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_migrations_and_modelObject


9
10
11
12
13
14
# File 'lib/merit/generators/install_generator.rb', line 9

def copy_migrations_and_model
  template 'merit.erb', 'config/initializers/merit.rb'
  template 'merit_badge_rules.erb', 'app/models/merit/badge_rules.rb'
  template 'merit_point_rules.erb', 'app/models/merit/point_rules.rb'
  template 'merit_rank_rules.erb', 'app/models/merit/rank_rules.rb'
end

#run_active_record_generatorsObject


16
17
18
# File 'lib/merit/generators/install_generator.rb', line 16

def run_active_record_generators
  invoke 'merit:active_record:install'
end