Class: Cantango::Generators::RolePermitsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
PermitGenerator
Defined in:
lib/generators/cantango/role_permits/role_permits_generator.rb

Instance Attribute Summary

Attributes included from PermitGenerator

#permit_logic, #permit_name

Instance Method Summary collapse

Methods included from PermitGenerator

#load_permit_template, #permit_source, #permit_target, #set_logic, #source_path, #template_account_permit, #template_filepath, #template_permit, #template_simple_permit

Methods included from Basic

#account, #admin_logic, #base_logic, #guest_logic, #license_logic, #rules_logic

Instance Method Details

#main_flowObject



22
23
24
25
# File 'lib/generators/cantango/role_permits/role_permits_generator.rb', line 22

def main_flow
  create_special_permits if special_permits?
  create_permits
end