Skip to content

Commit b771362

Browse files
authored
Merge pull request #330 from Health-eFilings/fix-alignment-warning
Fix warning for alignment of end with def
2 parents d86cbe0 + 7908a2a commit b771362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/closure_tree/hash_tree_support.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def default_tree_scope(scope, limit_depth = nil)
1414
ON #{quoted_table_name}.#{model_class.primary_key} = generation_depth.descendant_id
1515
SQL
1616
scope_with_order(scope.joins(generation_depth), 'generation_depth.depth')
17-
end
17+
end
1818

1919
def hash_tree(tree_scope, limit_depth = nil)
2020
limited_scope = limit_depth ? tree_scope.where("#{quoted_hierarchy_table_name}.generations <= #{limit_depth - 1}") : tree_scope
@@ -33,4 +33,4 @@ def build_hash_tree(tree_scope)
3333
tree
3434
end
3535
end
36-
end
36+
end

0 commit comments

Comments
 (0)