Skip to content

Commit

Permalink
* Removed $c->path_to when loading profiles.yml
Browse files Browse the repository at this point in the history
 * Released 0.08

git-svn-id: http://svn.unknownplace.org/public/library/perl/trunk/Catalyst-Plugin-FormValidator-Simple-Auto@360 325430d6-99fa-0310-bb67-a757393f56df
  • Loading branch information
typester committed Sep 9, 2006
1 parent 0ef7a6b commit a920ea8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl module Catalyst::Plugin::FormValidator::Simple::Auto

0.08 2006-09-09T15:16:29+09:00
- removed $c->path_to when loading yaml file

0.07 2006-07-25T13:05:01+09:00
- added validator_profile accessor to store current profile
- added some basic tests
Expand Down
6 changes: 3 additions & 3 deletions META.yml
@@ -1,6 +1,6 @@
---
name: Catalyst-Plugin-FormValidator-Simple-Auto
version: 0.07
version: 0.08
author:
- 'Daisuke Murase <typester@cpan.org>'
abstract: Smart validation with FormValidator::Simple
Expand All @@ -17,8 +17,8 @@ build_requires:
provides:
Catalyst::Plugin::FormValidator::Simple::Auto:
file: lib/Catalyst/Plugin/FormValidator/Simple/Auto.pm
version: 0.07
generated_by: Module::Build version 0.2801
version: 0.08
generated_by: Module::Build version 0.2805
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.2.html
version: 1.2
5 changes: 2 additions & 3 deletions lib/Catalyst/Plugin/FormValidator/Simple/Auto.pm
Expand Up @@ -7,7 +7,7 @@ use Catalyst::Exception;
use UNIVERSAL::isa;
use YAML;

our $VERSION = '0.07';
our $VERSION = '0.08';

__PACKAGE__->mk_accessors(qw/validator_profile/);

Expand Down Expand Up @@ -76,8 +76,7 @@ sub setup {

if ( ref $c->config->{validator}->{profiles} ne 'HASH' ) {
my $profiles = eval {
YAML::LoadFile(
$c->path_to( $c->config->{validator}->{profiles} )->stringify );
YAML::LoadFile( $c->config->{validator}->{profiles} );
};
Catalyst::Exception->throw( message => __PACKAGE__ . qq/: $@/ ) if $@;

Expand Down

0 comments on commit a920ea8

Please sign in to comment.