Sha256: dde3c279544fd6b7b4680a7182df201ff9c58f44b80f858e13a69c91ad1df44f

Contents?: true

Size: 383 Bytes

Versions: 27

Compression:

Stored size: 383 Bytes

Contents

require 'rails/generators'
require File.expand_path('../utils', __FILE__)

module Enjoy
  class AbilityGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    include Generators::Utils::InstanceMethods

    desc 'Enjoy CanCan Ability config generator'
    def ability
      template 'ability.erb', 'app/models/ability.rb'
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.7.3 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.7.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.7.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.7 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.6.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.6.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.6 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.5 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.4 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.3 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.2.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.1.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.1.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.0.4 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.0.3 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.3.0.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.1 lib/generators/enjoy/ability_generator.rb