Class: Cancan::Generators::PermitGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cancan::Generators::PermitGenerator
- Defined in:
- lib/generators/cancan/permit/permit_generator.rb
Instance Method Summary collapse
Instance Method Details
#main_flow ⇒ Object
23 24 25 26 |
# File 'lib/generators/cancan/permit/permit_generator.rb', line 23 def main_flow return if role.empty? template_permit end |