Class: Cancan::Generators::LicensesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cancan/licenses/licenses_generator.rb

Instance Method Summary collapse

Instance Method Details

#main_flowObject



17
18
19
20
21
22
23
24
25
# File 'lib/generators/cancan/licenses/licenses_generator.rb', line 17

def main_flow      
  if default_licenses?
    default_licenses.each{|license| default_license license }
  end  

  licenses.each do |license|      
    template_license(license) # if !skip_license?(license)
  end    
end