push
0 of 2 new or added lines in 1 file covered. (0.0%)
3735 existing lines in 129 files now uncovered.1940 of 15644 relevant lines covered (12.4%)
0.25 hits per line
UNCOV
1
|
class TeamUserNode < Node |
× |
UNCOV
2
|
belongs_to :node_object, class_name: 'TeamsUser' |
× |
3 |
# attr_accessible :parent_id, :node_object_id # unnecessary protected attributes
|
|
4 |
|
|
UNCOV
5
|
def self.table |
× |
6 |
'teams_users'
|
× |
UNCOV
7
|
end
|
× |
8 |
|
|
UNCOV
9
|
def get_name(ip_address = nil) |
× |
10 |
TeamsUser.find(node_object_id).name(ip_address)
|
× |
UNCOV
11
|
end
|
× |
12 |
|
|
UNCOV
13
|
def self.get(parent_id) |
× |
14 |
nodes = Node.joins('INNER JOIN teams_users ON nodes.node_object_id = teams_users.id') |
× |
UNCOV
15
|
.select('nodes.*')
|
× |
UNCOV
16
|
.where("nodes.type = 'TeamUserNode'")
|
× |
17 |
nodes.where('teams_users.team_id = ?', parent_id) if parent_id |
× |
UNCOV
18
|
end
|
× |
19 |
|
|
UNCOV
20
|
def is_leaf |
× |
21 |
true
|
× |
UNCOV
22
|
end
|
× |
UNCOV
23
|
end
|
× |