acts_as_trackable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/changelog.md +3 -0
- data/lib/acts_as_trackable/trackable.rb +2 -2
- data/lib/acts_as_trackable/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041cc056fefd655f6a77b9489f9e06d41fdd543fb81e8b6ebca22790a63a77bb
|
4
|
+
data.tar.gz: df5ac7eb491c260a79e6b840c7ce35cff36cb42a5b75787fd12cec224f1fa195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99b5d849667c3f48ab76948929715aa893b1c96ecb6b2df7a8fa819e520b2be1d587e5d9e2923e703811b85300153cb099a70a3ab81c24a31a13d3809fc5ce3e
|
7
|
+
data.tar.gz: 063aaf79b5d6f557619d284059325b74b6f5f4052df4274a08e8eb666c2b5ccbd3476ce76ade9df6e78ed05c99a7359f43e02a4bf7d829d7f7814f259d83a374
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/changelog.md
ADDED
@@ -23,8 +23,8 @@ module Trackable
|
|
23
23
|
}
|
24
24
|
|
25
25
|
def self.left_join_users(action, user_type)
|
26
|
-
"LEFT JOIN #{user_type.
|
27
|
-
"ON #{action}_#{user_type.
|
26
|
+
"LEFT JOIN #{user_type.underscore.pluralize} AS #{action}_#{user_type.underscore.pluralize} " \
|
27
|
+
"ON #{action}_#{user_type.underscore.pluralize}.id = object_activities.#{action}_id " \
|
28
28
|
"AND object_activities.#{action}_type = '#{user_type}'"
|
29
29
|
end
|
30
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_trackable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ahmad Keewan
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- acts_as_trackable.gemspec
|
52
52
|
- bin/console
|
53
53
|
- bin/setup
|
54
|
+
- changelog.md
|
54
55
|
- lib/acts_as_trackable.rb
|
55
56
|
- lib/acts_as_trackable/modifier.rb
|
56
57
|
- lib/acts_as_trackable/trackable.rb
|