Class: Pageflow::Generators::CancanGenerator Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#create_abilityObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

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