Class: Cancan::Generators::PermitGenerator

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

Instance Method Summary collapse

Instance Method Details

#main_flowObject



23
24
25
26
# File 'lib/generators/cancan/permit/permit_generator.rb', line 23

def main_flow      
  return if role.empty?
  template_permit
end