Skip to content

Commit

Permalink
assign Default key by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Jun 23, 2011
1 parent bc47b73 commit 377fe8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mason/Plugin/Cache/Filters.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package Mason::Plugin::Cache::Filters;
use Mason::PluginRole;

method Cache ( $key, $set_options, %cache_options ) {
$key = 'Default' if !defined($key);
Mason::DynamicFilter->new(
filter => sub {
$self->cache(%cache_options)->compute( $key, $_[0], $set_options );
Expand Down

0 comments on commit 377fe8d

Please sign in to comment.