##// END OF EJS Templates
Prevent mass-assignment when adding a news comment (#10390)....
Prevent mass-assignment when adding a news comment (#10390). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9129 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7760:30556f8cbfac
r9009:bdf6e90f055a
Show More
show.api.rsb
25 lines | 851 B | text/plain | TextLexer
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 api.project do
api.id @project.id
api.name @project.name
api.identifier @project.identifier
api.description @project.description
api.homepage @project.homepage
Jean-Philippe Lang
Adds visibility condition on parent project in API....
r6084 api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.api.rsb...
r7187
Jean-Philippe Lang
Fixed: error when serializing back objects with custom fields using ActiveResource (#6403)....
r4366 render_api_custom_values @project.visible_custom_field_values, api
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.api.rsb...
r7187
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 api.created_on @project.created_on
api.updated_on @project.updated_on
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.api.rsb...
r7187
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 api.array :trackers do
@project.trackers.each do |tracker|
api.tracker(:id => tracker.id, :name => tracker.name)
end
Jean-Philippe Lang
Makes some attributes optional in API response to get faster/lightweight responses....
r4372 end if include_in_api_response?('trackers')
Jean-Philippe Lang
Makes issue categories available in project REST API (#9553)....
r7760
api.array :issue_categories do
@project.issue_categories.each do |category|
api.issue_category(:id => category.id, :name => category.name)
end
end if include_in_api_response?('issue_categories')
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 end