Sha256: e2d7d1f03dadf047865dda2ddf18634d2a0e4bcbdcbe5113a92288b4784a29dd
Contents?: true
Size: 705 Bytes
Versions: 37
Compression:
Stored size: 705 Bytes
Contents
class OverriddenConcernsController < ApplicationController resource_description { resource_id 'overridden_concern_resources' } apipie_concern_subst(:concern => 'user') include ::Concerns::SampleController def_param_group :concern do param :concern, String end api :PUT, '/:resource_id/:id' param :custom_parameter, String, "New parameter added by the overriding method" param_group :concern, ::Concerns::SampleController def update super end api :POST, '/:resource_id', "Create a :concern" param_group :concern def create super end api :GET, '/:resource_id/custom' param :concern, String def custom render :text => "OK #{params.inspect}" end end
Version data entries
37 entries across 37 versions & 2 rubygems