Sha256: 70e4c2378551ad4675f4cee6ec5158c31878a685b9cab34239982d94754f712f

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

module Api
  module V2
    class EmptyMiddleController < V2::BaseController
      # This is an empty controller, used to test cases where controllers
      # may inherit from a middle controller that does not define a resource_description,
      # but the middle controller's parent does.

      def inconsequential_method
        # This method is here to ensure that the controller is not empty.
        # It triggers method_added, which is used to add the resource description.
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apipie-rails-1.4.2 spec/dummy/app/controllers/api/v2/empty_middle_controller.rb
apipie-rails-1.4.1 spec/dummy/app/controllers/api/v2/empty_middle_controller.rb
apipie-rails-1.4.0 spec/dummy/app/controllers/api/v2/empty_middle_controller.rb