Sha256: f5fa944942f6ab11b93f2183246cec8c6b9bfb5277c00c3c3ae34f4996840c90

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

module PowerApi
  module GeneratorHelper; end

  class Engine < ::Rails::Engine
    isolate_namespace PowerApi

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_bot, dir: "spec/factories"
    end

    initializer "initialize" do
      require_relative "./errors"
      require_relative "./generator_helper/controller_actions_helper"
      require_relative "./generator_helper/active_record_resource"
      require_relative "./generator_helper/api_helper"
      require_relative "./generator_helper/resource_helper"
      require_relative "./generator_helper/ams_helper"
      require_relative "./generator_helper/rspec_controller_helper"
      require_relative "./generator_helper/controller_helper"
      require_relative "./generator_helper/routes_helper"
      require_relative "./generator_helper/pagination_helper"
      require_relative "./generator_helper/simple_token_auth_helper"
      require_relative "./generator_helper/rubocop_helper"
      require_relative "./generator_helper/template_builder_helper"
      require_relative "./generator_helpers"
    end

    initializer "power_api.view_helpers" do
      ActiveSupport.on_load(:action_view) { include ::PowerApi::ApplicationHelper }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
power_api-2.1.1 lib/power_api/engine.rb
power_api-2.1.0 lib/power_api/engine.rb