Skip to content

Commit

Permalink
oops, need to load the component that makes the attribute work
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Feb 25, 2020
1 parent 3ce57a3 commit a8a692a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@
Revision history for {{$dist->name}}

{{$NEXT}}
- fix remove_columns shortcut to add the 'remove_columns' attribute
in case it is missing (Karen Etheridge, #101)

2.035000 2020-02-21 08:38:42-08:00 America/Los_Angeles
- add remove_columns shortcut (Karen Etheridge, GH#100)
Expand Down
2 changes: 2 additions & 0 deletions lib/DBIx/Class/Helper/ResultSet/Shortcut/RemoveColumns.pm
Expand Up @@ -5,6 +5,8 @@ use warnings;

use parent 'DBIx::Class::ResultSet';

__PACKAGE__->load_components('Helper::ResultSet::RemoveColumns');

sub remove_columns { shift->search(undef, { remove_columns => shift }) }

1;

0 comments on commit a8a692a

Please sign in to comment.