Sha256: ac450ed0817ad2f00831563cf3727f90fc76bff7d953b0cd6a0ddb9539306906

Contents?: true

Size: 260 Bytes

Versions: 11

Compression:

Stored size: 260 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cancancan-2.3.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.2.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.1.4 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.1.3 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.1.2 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.1.1 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.1.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.0.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-1.17.0 lib/generators/cancan/ability/ability_generator.rb
cancancan-2.0.0.rc1 lib/generators/cancan/ability/ability_generator.rb
cancancan-1.16.0 lib/generators/cancan/ability/ability_generator.rb