[Rt-commit] rt branch, 4.2/record-class-on-collection, updated. rt-4.1.13-28-g5dd4045

Thomas Sibley trs at bestpractical.com
Mon Jul 1 18:59:41 EDT 2013


The branch, 4.2/record-class-on-collection has been updated
       via  5dd4045a701baeb3289aba668b9bceb4aaf87c8e (commit)
      from  0c23acb1a6bfcb795d9560f46e99dd521d82bb71 (commit)

Summary of changes:
 lib/RT/ACL.pm           | 4 ++++
 lib/RT/ObjectClasses.pm | 2 ++
 2 files changed, 6 insertions(+)

- Log -----------------------------------------------------------------
commit 5dd4045a701baeb3289aba668b9bceb4aaf87c8e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Jul 1 15:59:05 2013 -0700

    Add _SingularClasses for those collections which can't be s/s$//

diff --git a/lib/RT/ACL.pm b/lib/RT/ACL.pm
index 97c7d0e..8274c93 100644
--- a/lib/RT/ACL.pm
+++ b/lib/RT/ACL.pm
@@ -228,6 +228,10 @@ sub NewItem {
     my $self = shift;
     return(RT::ACE->new($self->CurrentUser));
 }
+
+# The singular of ACL is ACE.
+sub _SingularClass { "RT::ACE" }
+
 RT::Base->_ImportOverlays();
 
 1;
diff --git a/lib/RT/ObjectClasses.pm b/lib/RT/ObjectClasses.pm
index 01cf77f..5d48b6a 100644
--- a/lib/RT/ObjectClasses.pm
+++ b/lib/RT/ObjectClasses.pm
@@ -81,6 +81,8 @@ sub NewItem {
     return(RT::ObjectClass->new($self->CurrentUser));
 }
 
+sub _SingularClass { "RT::ObjectClass" }
+
 
 RT::Base->_ImportOverlays();
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list