Sha256: 2aac2b3f418fcee9fed96eaa9d49e52e8db786a082af8583b4866e9872f3cea2

Contents?: true

Size: 287 Bytes

Versions: 12

Compression:

Stored size: 287 Bytes

Contents

# 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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/cancancan-3.6.1/lib/generators/cancan/ability/ability_generator.rb
cancancan-3.5.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.4.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.3.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.2.2 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.2.1 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.2.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.1.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.0.2 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.0.1 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.0.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-3.0.0.rc1 lib/generators/cancan/ability/ability_generator.rb