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

Version Path
apipie-rails-0.7.2 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.7.1 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.7.0 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.6.0 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.20 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.19 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.18 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.17 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.16 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipierails3-0.0.1 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.15 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.14 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.13 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.12 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.11 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.10 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.9 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.8 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.7 spec/dummy/app/controllers/overridden_concerns_controller.rb
apipie-rails-0.5.6 spec/dummy/app/controllers/overridden_concerns_controller.rb