deleted_at 0.6.0.pre.1 → 0.6.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -4
- data/lib/deleted_at/relation.rb +2 -2
- data/lib/deleted_at/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9cf5aea9d0f1df96b7fd9d30396733d8d523a8cf6076abb7c8b79b8c4c9c2e8
|
4
|
+
data.tar.gz: 014e280a3bf095389b40d3b4f87f19335f4a1a4d538e08e60a95ced387ded595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fcbea0f8620db2ee9ad31e6e278647acfeb1511f0f03e88a00e9669dcdd6de2e669f79e8838a2070477c5a6597957baf02f6ebfefabedeca46c3274da66c972
|
7
|
+
data.tar.gz: 6a998e6ba5e99f43d9c81923ada798670da76aaed3040fa83b24cf14f7a1088e2f3880bc34b985f431bfaf2be77f1ceb6b023a6da97f01cde106fc1bcb2e3934
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# DeletedAt
|
2
2
|
|
3
|
-
## 0.6.0 _(September 4, 2018)_
|
4
|
-
- Added support for Rails 5.2
|
5
|
-
- Overhauled injection process for cleaner and more reliable sub-selecting
|
6
|
-
|
7
3
|
## 0.5.0 _(June 25, 2018)_
|
8
4
|
- Removed use of invasive views in preference of sub-selects
|
9
5
|
- Dropped support for Ruby 2.0, 2.1, 2.2
|
data/lib/deleted_at/relation.rb
CHANGED
@@ -30,7 +30,7 @@ module DeletedAt
|
|
30
30
|
# Rails 4.x
|
31
31
|
def from_value
|
32
32
|
if (subselect = deleted_at_select)
|
33
|
-
[subselect, table_name]
|
33
|
+
[subselect, ::ActiveRecord::Base.connection.quote_table_name(table_name)]
|
34
34
|
else
|
35
35
|
super
|
36
36
|
end
|
@@ -39,7 +39,7 @@ module DeletedAt
|
|
39
39
|
# Rails 5.x
|
40
40
|
def from_clause
|
41
41
|
if (subselect = deleted_at_select)
|
42
|
-
::ActiveRecord::Relation::FromClause.new(subselect, table_name)
|
42
|
+
::ActiveRecord::Relation::FromClause.new(subselect, ::ActiveRecord::Base.connection.quote_table_name(table_name))
|
43
43
|
else
|
44
44
|
super
|
45
45
|
end
|
data/lib/deleted_at/version.rb
CHANGED