Merge branch 'pull/3164'
This commit is contained in:
commit
28af501924
3 changed files with 24 additions and 2 deletions
|
@ -7,12 +7,17 @@ module Api
|
|||
|
||||
around_action :api_call_handle_error
|
||||
|
||||
before_action :set_request_formats
|
||||
|
||||
##
|
||||
# return all the preferences as an XML document
|
||||
# return all the preferences
|
||||
def index
|
||||
@user_preferences = current_user.preferences
|
||||
|
||||
render :formats => [:xml]
|
||||
respond_to do |format|
|
||||
format.xml
|
||||
format.json
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue