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



6
7
8
# File 'lib/generators/cancan/ability/ability_generator.rb', line 6

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