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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89cfb6c7ce0c5723892332204477751e65d91374
4
- data.tar.gz: c7c40cd8d493cbc21e06c9ce3f4008a63c04076b
3
+ metadata.gz: 102196ea2eea7544233fbe0bdb3c7ecf9aacfabb
4
+ data.tar.gz: 457a32a8d0b7a09a4cf0e8b2e6057546c21b663b
5
5
  SHA512:
6
- metadata.gz: 43c15695390e39f1ab8415c825058da7fb4093c242710f3abdd29ef75d8bd9f10bbf1fb31769d99e7aaa3ff069313d662f11274ef3b271485f8c96922ea1d3a9
7
- data.tar.gz: cd9db0fee8b03fe183525591d689127bd7d8bb1da4b13cff0774939c3f931df5218a994c35eb726d4d1d2f354917ec29f9d7ddf20d43abf6f1f08d9ea5d87189
6
+ metadata.gz: 0bf0a5f24379db92cf18e5cedee039455a3d48b119c5431e998c0febb25ef71676edbbb82de5ec2773e2aa591527bdeee52baf40f78d17a4ee04dd787e3e2a04
7
+ data.tar.gz: 733778ebb18c3bd6953663beb1c56ecb56ac8d688343a64636fc21639b117f77e3c6eca5670b3c455fd286f63e591d9db941994a183bfaf72ddd19e1b0b68c1e
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '2.0.10'
3
+ VERSION = '2.0.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel