Permalink
Browse files

a couple more doc fixes

  • Loading branch information...
1 parent 83835e4 commit 9a73596f77d9c25a6683948f1c78f57ddfb61ecb @burtbeckwith burtbeckwith committed May 16, 2016
View
@@ -5811,8 +5811,8 @@ <h3 id="persistent-role-hierarchy">14.1. Persistent role hierarchy</h3>
<div class="title">Listing 67. Persisting <code>RoleHierarchyEntry</code> instances</div>
<div class="content">
<pre class="prettyprint highlight"><code class="language-groovy" data-lang="groovy">if (!RoleHierarchyEntry.count()) {
- new RoleHierarchyEntry('ROLE_SUPERADMIN &gt; ROLE_FINANCE_ADMIN').save()
- new RoleHierarchyEntry('ROLE_FINANCE_ADMIN &gt; ROLE_ADMIN').save()
+ new RoleHierarchyEntry(entry: 'ROLE_SUPERADMIN &gt; ROLE_FINANCE_ADMIN').save()
+ new RoleHierarchyEntry(entry: 'ROLE_FINANCE_ADMIN &gt; ROLE_ADMIN').save()
}</code></pre>
</div>
</div>
@@ -7025,7 +7025,7 @@ <h4 id="5-edit-grails-app-init-bootstrap-groovy-to-add-a-test-user">23.1.5. 5. E
def adminRole = new Role(authority: 'ROLE_ADMIN').save()
def userRole = new Role(authority: 'ROLE_USER').save()
- def testUser = new User('me', 'password').save()
+ def testUser = new User(username: 'me', password: 'password').save()
UserRole.create testUser, adminRole
@@ -7459,7 +7459,7 @@ <h3 id="s2-create-role-hierarchy-entry">26.3. s2-create-role-hierarchy-entry</h3
<div id="footer">
<div id="footer-text">
Version 3.1.1<br>
-Last updated 2016-05-15 16:08:25 -04:00
+Last updated 2016-05-15 18:42:57 -04:00
</div>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css">
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9a73596

Please sign in to comment.