From: John Napiorkowski Date: Thu, 19 Jun 2008 15:48:39 +0000 (+0000) Subject: renamed get_current_storage to get_from_storage since the first method name is very... X-Git-Tag: v0.08240~402^2~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a737512cdbe7f21dae158d1b60d71d30df658745;p=dbsrgits%2FDBIx-Class.git renamed get_current_storage to get_from_storage since the first method name is very poorly named --- diff --git a/lib/DBIx/Class/PK.pm b/lib/DBIx/Class/PK.pm index f664cc6..32efba6 100644 --- a/lib/DBIx/Class/PK.pm +++ b/lib/DBIx/Class/PK.pm @@ -40,7 +40,7 @@ sub discard_changes { delete $self->{_dirty_columns}; return unless $self->in_storage; # Don't reload if we aren't real! - if( my $current_storage = $self->get_current_storage) { + if( my $current_storage = $self->get_from_storage) { # Set $self to the current. %$self = %$current_storage; diff --git a/lib/DBIx/Class/Row.pm b/lib/DBIx/Class/Row.pm index eab11d9..108e918 100644 --- a/lib/DBIx/Class/Row.pm +++ b/lib/DBIx/Class/Row.pm @@ -785,7 +785,7 @@ sub register_column { $class->mk_group_accessors('column' => $acc); } -=head2 get_current_storage +=head2 get_from_storage Returns a new Row which is whatever the Storage has for the currently created Row object. You ca use this to see if the storage has become inconsistent with @@ -793,7 +793,7 @@ whatever your Row object is. =cut -sub get_current_storage { +sub get_from_storage { my $self = shift @_; my @primary_columns = map { $self->$_ } $self->primary_columns; return $self->result_source->schema->txn_do(sub {