Class: Permissify::Generators::AbilityGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/permissify/ability/ability_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_abilityObject



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