Sha256: f38d872ececb4d318d8c4cfa1a4a9aa5bfec81647a9baa363b9d547588c51f77

Contents?: true

Size: 321 Bytes

Versions: 92

Compression:

Stored size: 321 Bytes

Contents

require 'rails/generators'

module Pageflow
  module Generators
    class CancanGenerator < Rails::Generators::Base
      desc 'Setup ability class.'

      source_root File.expand_path('../templates', __FILE__)

      def create_ability
        template 'ability.rb', 'app/models/ability.rb'
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
pageflow-17.0.4 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-17.0.3 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-17.0.2 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-17.0.1 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-17.0.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-16.2.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-16.1.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-16.0.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.8.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-14.5.2 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.7.1 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.7.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.6.1 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.6.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.5.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.4.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.3.0 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.2.2 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.2.1 lib/generators/pageflow/cancan/cancan_generator.rb
pageflow-15.2.0 lib/generators/pageflow/cancan/cancan_generator.rb