Class: Pageflow::Generators::CancanGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_abilityObject



10
11
12
# File 'lib/generators/pageflow/cancan/cancan_generator.rb', line 10

def create_ability
  template 'ability.rb', 'app/models/ability.rb'
end