Project

General

Profile

Bug #3853

allow rabl overrides to taxonomies_controller

Added by Thomas McKay over 7 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When an engine extends a core model, they may wish to override the rabl json to include their own fields.

For example, the index method in app/controllers/api/v2/taxonomies_controller.rb could be changed to

def index(rabl='api/v2/taxonomies/index')
  ...
  render rabl
end

Related issues

Related to Foreman - Feature #3763: Ability for engine/plugin to extend RABL responsesClosed2013-11-26
Related to Foreman - Feature #9375: Find a way for plugins to easily override the behavior of taxonomies controller actionsRejected2015-02-13

Associated revisions

Revision c0537928 (diff)
Added by Thomas McKay over 7 years ago

fixes #3853 - allow rabl template override to be specified

3853-taxonomy-rabl - changed style of override

History

#1 Updated by Thomas McKay over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#2 Updated by Dominic Cleal over 7 years ago

  • Assignee set to Thomas McKay
  • Target version set to 1.9.3
  • Legacy Backlogs Release (now unused) set to 2

#3 Updated by Dominic Cleal over 7 years ago

  • Related to Feature #3763: Ability for engine/plugin to extend RABL responses added

#4 Updated by David Davis over 6 years ago

  • Related to Feature #9375: Find a way for plugins to easily override the behavior of taxonomies controller actions added

Also available in: Atom PDF