Class: Permits::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Cream::GeneratorHelper
Defined in:
lib/generators/permits/config/config_generator.rb

Instance Method Summary collapse

Methods included from Cream::GeneratorHelper

#add_logger, #debug!, included, #info!, #logit!

Instance Method Details

#configure_permitsObject



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/generators/permits/config/config_generator.rb', line 21

def configure_permits
	logit!
  debug! "Configure Permits"

permits_gems if gems?

  # Run permits generator to generate permit for each role
  rgen "cancan:permits #{roles_list} --orm #{orm}"
  # rgen "cancan:permits --roles #{roles_list} --orm #{orm}"
  rgen "cancan:licenses"
end