radiant-clipped_asset_roles-extension 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -72,7 +72,7 @@ module ClippedAssetRoles::AssetTagExtensions
|
|
72
72
|
*roles.map { |role| role } ]
|
73
73
|
end
|
74
74
|
|
75
|
-
options[:joins] = "INNER JOIN `page_attachments` pa ON `assets`.id = pa.asset_id INNER JOIN `asset_roles` ON (`asset_roles`.page_attachment_id = pa.id)"
|
75
|
+
options[:joins] = "INNER JOIN `page_attachments` pa ON `assets`.id = pa.asset_id AND pa.page_id = #{tag.locals.page.id} INNER JOIN `asset_roles` ON (`asset_roles`.page_attachment_id = pa.id)"
|
76
76
|
end
|
77
77
|
options
|
78
78
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantClippedAssetRolesExtension
|
2
|
-
VERSION = "1.0.
|
2
|
+
VERSION = "1.0.5"
|
3
3
|
SUMMARY = "Clipped Asset Roles for Radiant CMS"
|
4
4
|
DESCRIPTION = "Adds new scoping levels for assets, e.g. a 'portfolio' role for images."
|
5
5
|
URL = "https://github.com/jomz/radiant-clipped_asset_roles-extension"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-clipped_asset_roles-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: radiant-clipped-extension
|