Class: Permits::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
Rails3::Assist::UseMacro
Includes:
Rails3::Assist::BasicLogger
Defined in:
lib/generators/permits/config/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#configure_permitsObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/generators/permits/config/config_generator.rb', line 18

def configure_permits
	logger.add_logfile :logfile => logfile if logfile
  logger.debug "Configure Permits"

permits_gems if gems?

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