cancan/lib/generators/cancan/ability/ability_generator.rb
2010-12-21 11:38:27 -08:00

12 lines
260 B
Ruby

module Cancan
module Generators
class AbilityGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)
def generate_ability
copy_file "ability.rb", "app/models/ability.rb"
end
end
end
end