Class: Cancan::Generators::AbilityGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_abilityObject



8
9
10
# File 'lib/generators/cancan/ability/ability_generator.rb', line 8

def generate_ability
  copy_file 'ability.rb', 'app/models/ability.rb'
end