Class: Permissify::Generators::AbilityGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Permissify::Generators::AbilityGenerator
- Defined in:
- lib/generators/permissify/ability/ability_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_ability ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/permissify/ability/ability_generator.rb', line 6 def generate_ability copy_file "ability.rb", "app/models/ability.rb" empty_directory "app/models/system_fixtures" copy_file "abilities.rb", "app/models/system_fixtures/abilities.rb" end |