[Jifty-commit] r1278 - in jifty: trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jun 13 18:46:33 EDT 2006
Author: zev
Date: Tue Jun 13 18:46:32 2006
New Revision: 1278
Modified:
jifty/ (props changed)
jifty/trunk/lib/Jifty/ClassLoader.pm
jifty/trunk/lib/Jifty/Record.pm
Log:
r4026 at galvatron: zev | 2006-06-13 18:46:03 -0400
documentation additions and corrections
Modified: jifty/trunk/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/trunk/lib/Jifty/ClassLoader.pm (original)
+++ jifty/trunk/lib/Jifty/ClassLoader.pm Tue Jun 13 18:46:32 2006
@@ -16,8 +16,11 @@
=head2 new
Returns a new ClassLoader object. Doing this installs a hook into
-C<@INC> that allows L<Jifty::ClassLoader> to dynamically create needed
-classes if they do not exist already.
+C<@INC> that allows L<Jifty::ClassLoader> to dynamically create
+needed classes if they do not exist already. This works because if
+use/require encounters a blessed reference in C<@INC>, it will
+invoke the INC method with the name of the module it is searching
+for on the reference.
Takes one mandatory argument, C<base>, which should be the the
application's base path; all of the classes under this will be
Modified: jifty/trunk/lib/Jifty/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Record.pm Tue Jun 13 18:46:32 2006
@@ -117,7 +117,7 @@
=head2 current_user_can RIGHT [, ATTRIBUTES]
-Should return true if the current user (C<$self->current_user>) is
+Should return true if the current user (C<< $self->current_user >>) is
allowed to do I<RIGHT>. Possible values for I<RIGHT> are:
=over
@@ -243,7 +243,7 @@
=head2 _collection_value METHOD
A method ripped from the pages of Jifty::DBI::Record
-so we could change the invocation method of hte collection generator to
+so we could change the invocation method of the collection generator to
add a current_user argument.
=cut
More information about the Jifty-commit
mailing list