active_record_calculator 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,21 +17,21 @@ module ActiveRecordCalculator
|
|
17
17
|
end
|
18
18
|
alias :count :cnt
|
19
19
|
|
20
|
-
def sum(column_name, as,
|
20
|
+
def sum(column_name, as, options = {})
|
21
21
|
add_operation(:sum, column_name, as, options)
|
22
22
|
end
|
23
23
|
|
24
|
-
def avg(column_name, as,
|
24
|
+
def avg(column_name, as, options = {})
|
25
25
|
add_operation(:avg, column_name, as, options)
|
26
26
|
end
|
27
27
|
alias :average :avg
|
28
28
|
|
29
|
-
def max(column_name, as,
|
29
|
+
def max(column_name, as, options = {})
|
30
30
|
add_operation(:max, column_name, as, options)
|
31
31
|
end
|
32
32
|
alias :maximum :max
|
33
33
|
|
34
|
-
def min(column_name, as,
|
34
|
+
def min(column_name, as, options = {})
|
35
35
|
add_operation(:min, column_name, as, options)
|
36
36
|
end
|
37
37
|
alias :minimum :min
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Grady Griffin
|