Sha256: 0a1d2a988c45079f7f6995783c4c86eb2ddbdae91af1d149ee8ae82f36ec4d15

Contents?: true

Size: 342 Bytes

Versions: 13

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module ApiMe
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def run_generators
        # Install Pundit
        run 'rails g pundit:install'

        # Add Pundit rpsec helpers
        prepend_to_file 'spec/spec_helper.rb', "require 'pundit/rspec'\n"
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
api_me-0.14.1 lib/generators/api_me/install_generator.rb
api_me-0.14.0 lib/generators/api_me/install_generator.rb
api_me-0.13.0 lib/generators/api_me/install_generator.rb
api_me-0.12.0 lib/generators/api_me/install_generator.rb
api_me-0.11.1 lib/generators/api_me/install_generator.rb
api_me-0.10.7 lib/generators/api_me/install_generator.rb
api_me-0.10.6 lib/generators/api_me/install_generator.rb
api_me-0.10.5 lib/generators/api_me/install_generator.rb
api_me-0.10.4 lib/generators/api_me/install_generator.rb
api_me-0.10.3 lib/generators/api_me/install_generator.rb
api_me-0.10.2 lib/generators/api_me/install_generator.rb
api_me-0.10.1 lib/generators/api_me/install_generator.rb
api_me-0.10.0 lib/generators/api_me/install_generator.rb