Open ysyyork opened 8 years ago
+1
+1
+1
ENV:
gem 'apipie-rails', '~> 0.3.6'
I fixed it with a concern:
module Concerns
module ApipieInheritPatch
extend ActiveSupport::Concern
included do
def self._apipie_get_method_params(action_name)
if !self.superclass.method_defined?(action_name.to_sym)
super(action_name)
else
self.superclass._apipie_get_method_params(action_name)
end
end
end
end
end
BTW: if we hack _apipie_save_method_params
, it can slove the doc page too.
Would you mind opening a PR for this?
Ok,I will open a PR to fix it.
Can anyone guide me on how to use use @lanrion's hack in https://github.com/Apipie/apipie-rails/issues/488#issuecomment-305385998?
@itskingori
include Concerns::ApipieInheritPatch
in your controller.
+1
can anyone prepare something solid, with added tests, I can review and release
I have two controllers inherit from a same parent controller. I add resource_description block in the parent controller but the child controllers can not show these descriptions. I don't know if it's my configuration problem. For configuration, I set controller matcher exactly these three controllers I want to deal with. If I put resource_description block in each of these controllers, it will work correctly.