From 7908a2a2c41471a5e97ab5a5cde44199e3b1149a Mon Sep 17 00:00:00 2001 From: iamtheschmitzer Date: Fri, 27 Apr 2018 09:05:43 -0500 Subject: [PATCH] Fix warning for alignment of end with def --- lib/closure_tree/hash_tree_support.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/closure_tree/hash_tree_support.rb b/lib/closure_tree/hash_tree_support.rb index 9e2a0b62..f9925646 100644 --- a/lib/closure_tree/hash_tree_support.rb +++ b/lib/closure_tree/hash_tree_support.rb @@ -14,7 +14,7 @@ def default_tree_scope(scope, limit_depth = nil) ON #{quoted_table_name}.#{model_class.primary_key} = generation_depth.descendant_id SQL scope_with_order(scope.joins(generation_depth), 'generation_depth.depth') - end + end def hash_tree(tree_scope, limit_depth = nil) 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) tree end end -end \ No newline at end of file +end