Skip to content

Commit

Permalink
[WebUI IntelliHome#7] Fixing RPC service base
Browse files Browse the repository at this point in the history
  • Loading branch information
skullbocks committed Aug 19, 2014
1 parent b21fc78 commit 27e2d2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/IntelliHome/RPC/Service/Base.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package IntelliHome::RPC::Service::Base;

=head1 NAME
IntelliHome::RPC::Service::Base - Base class for RPC Services
Expand Down Expand Up @@ -32,9 +33,12 @@ has 'IntelliHome';
sub new {
my $self = shift;
$self = $self->SUPER::new(@_);
$self->{'_rpcs'}
->{ lc( ( split( "::", ( $self =~ /(.*)\=/ )[0] ) )[-1] ) }
->{'with_mojo_tx'} = 1;

# $self->{'_rpcs'}
# ->{ lc( ( split( "::", ( $self =~ /(.*)\=/ )[0] ) )[-1] ) }
# ->{'with_mojo_tx'} = 1;
$self->{'_rpcs'}->{$_}->{'with_mojo_tx'} = 1
for ( keys %{ $self->{'_rpcs'} } );
return $self;
}

Expand Down

0 comments on commit 27e2d2d

Please sign in to comment.