From 609e37e4844d2b10a65b9e5bb6aeae22e78d7f9a Mon Sep 17 00:00:00 2001 From: Aurélio A. Heckert Date: Fri, 4 Oct 2013 22:21:30 +0000 Subject: [PATCH] add doc comment to ScopeTool --- lib/scope_tool.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/scope_tool.rb b/lib/scope_tool.rb index 7128af9..b65a47a 100644 --- a/lib/scope_tool.rb +++ b/lib/scope_tool.rb @@ -1,5 +1,6 @@ module ScopeTool + # Sum scope results by SQL, allowing post filtering of the group. def union(*scopes) model = scopes.first.class_name.constantize scopes = scopes.map &:to_sql @@ -7,6 +8,7 @@ module ScopeTool end class << self + # Allows to use `ScopeTool.method()` anywhere. include ScopeTool end -- libgit2 0.21.2