MojoMojo::Schema::ResultSet::Role - resultset methods on roles


MojoMojo documentation Contained in the MojoMojo distribution.

Index


Code Index:

NAME

Top

MojoMojo::Schema::ResultSet::Role - resultset methods on roles

METHODS

Top

active_roles

Filter inactive roles.

AUTHOR

Top

Marcus Ramberg <mramberg@cpan.org>

LICENSE

Top

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


MojoMojo documentation Contained in the MojoMojo distribution.
package MojoMojo::Schema::ResultSet::Role;

use strict;
use warnings;
use parent qw/MojoMojo::Schema::Base::ResultSet/;

sub active_roles {
    shift->search( { active => 1 } );
}

1;