lib/generators/cancan/ability/ability_generator.rb
# frozen_string_literal: true
module Cancan
module Generators
class AbilityGenerator < Rails::Generators::Base
source_root File.expand_path('templates', __dir__)
def generate_ability
copy_file 'ability.rb', 'app/models/ability.rb'
end
end
end
end