diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 19:42:40 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:41 +0300 |
commit | bd406ca3503a032dc8e1ff0bd88a6657292b3fff (patch) | |
tree | bc5c11ae923f96cd52baa135f9a14f39826870ac | |
parent | fab7fdcf2f8b040c345d1cb0b05acd053c9af963 (diff) |
replace `is_overlap?` with `overlap?`
-rw-r--r-- | app/models/network/graph.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb index 0e5acb22d50..3845e485413 100644 --- a/app/models/network/graph.rb +++ b/app/models/network/graph.rb @@ -152,14 +152,14 @@ module Network end def find_free_parent_space(range, space_base, space_step, space_default) - if is_overlap?(range, space_default) + if overlap?(range, space_default) find_free_space(range, space_step, space_base, space_default) else space_default end end - def is_overlap?(range, overlap_space) + def overlap?(range, overlap_space) range.each do |i| if i != range.first && i != range.last && |