ecm_news2 2.0.10 → 2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ecm/news/item.rb +4 -0
- data/lib/ecm/news/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 102196ea2eea7544233fbe0bdb3c7ecf9aacfabb
|
4
|
+
data.tar.gz: 457a32a8d0b7a09a4cf0e8b2e6057546c21b663b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf0a5f24379db92cf18e5cedee039455a3d48b119c5431e998c0febb25ef71676edbbb82de5ec2773e2aa591527bdeee52baf40f78d17a4ee04dd787e3e2a04
|
7
|
+
data.tar.gz: 733778ebb18c3bd6953663beb1c56ecb56ac8d688343a64636fc21639b117f77e3c6eca5670b3c455fd286f63e591d9db941994a183bfaf72ddd19e1b0b68c1e
|
data/app/models/ecm/news/item.rb
CHANGED
@@ -55,6 +55,10 @@ class Ecm::News::Item < ActiveRecord::Base
|
|
55
55
|
human
|
56
56
|
end
|
57
57
|
|
58
|
+
def preview_picture_image_url(style = nil)
|
59
|
+
preview_picture.image.url(style) if preview_picture.respond_to?(:image) && preview_picture.image.respond_to?(:url)
|
60
|
+
end
|
61
|
+
|
58
62
|
private
|
59
63
|
|
60
64
|
def set_defaults
|
data/lib/ecm/news/version.rb
CHANGED