##// END OF EJS Templates
ruby1.9 compatibility...
ruby1.9 compatibility git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4601 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r4458:283d25d82334
r4481:9748567452cc
Show More
index.api.rsb
16 lines | 589 B | text/plain | TextLexer
Jean-Philippe Lang
Makes /projects API accept same pagination parameters as other API collection resources....
r4458 api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 @projects.each do |project|
api.project do
api.id project.id
api.name project.name
api.identifier project.identifier
api.description project.description
api.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil?
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
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
end
end
end