Skip to content

Commit

Permalink
fix dry-rb#53 auto inject issue
Browse files Browse the repository at this point in the history
  • Loading branch information
k0va1 committed Dec 25, 2022
1 parent e4838f9 commit 767154a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dry/rails/features/controller_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Features
#
# @api public
module ControllerHelpers
def initialize(*args, **kwargs, &block)
super()
end
# Return a component from the application container
#
# @example
Expand Down
4 changes: 4 additions & 0 deletions spec/dummy/app/controllers/api_users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# frozen_string_literal: true

class ApiUsersController < ActionController::API
include Dummy::Deps[
mailer: "mailer"
]

schema(:show) do
required(:id).value(:integer)
end
Expand Down
4 changes: 4 additions & 0 deletions spec/dummy/app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# frozen_string_literal: true

class UsersController < ApplicationController
include Dummy::Deps[
mailer: "mailer"
]

schema(:show) do
required(:id).value(:integer)
end
Expand Down

0 comments on commit 767154a

Please sign in to comment.