Exemplo n.º 1
0
 public static void withMap(String companyId) {
   Company company = Company.findById(companyId);
   Project project = new Project();
   project.companies = new HashMap();
   project.companies.put(company.name, company);
   project.create();
   render("@show", project);
 }
Exemplo n.º 2
0
 public static void createCompany(Company company) {
   company.create();
   render(company);
 }