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.2.0.3.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.0.3.1 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.0.3 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.0.2 lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.0.1.beta lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.2.0.beta lib/generators/enjoy/ability_generator.rb
enjoy_cms-0.1.0.beta1 lib/generators/enjoy/ability_generator.rb