ecm_news2 2.0.5 → 2.0.8

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: f23f0d6910a68a4a5d695f3e0c31bf66b1f58009
4
- data.tar.gz: 0235fc7728fa632d3da90117ba364a5c42ff0f07
3
+ metadata.gz: 49a176561f9d869241c8b035ed7de936c77dba88
4
+ data.tar.gz: 68ee80bec2dc3e88a2c1a01e16c5940e5133f8ef
5
5
  SHA512:
6
- metadata.gz: a91dc0b4aefc8c91635f510cf457c5a027963ed840d02493df38295259df66947fc0413ba5ac74d9dea2b701a58566002c0109f829c57649da73e71741e21486
7
- data.tar.gz: 486627a8ee838e971142c63b9176c90e07190b54572dd1454d1ba0488b6509994d7fdb5688fcad069391b6631388b0462a6533ffbead6cf58831bff766db258b
6
+ metadata.gz: 2f317846d0b38692e6a62e6d3415a6a5b04cbd20c860d7fcd2dcda79f9866065b4ff073cd4b4770a86781cc0ee4b1f44f793ff3b8c97936cb5b0341b3999d7ba
7
+ data.tar.gz: bd2dc60867a639a813e1006d0811355983bb11eff0df6435088dbdc7c7c18d34e340aef8036128f7fd2c9214761ffcb283d95615dac473eab593a266d2287238
@@ -4,6 +4,6 @@ class Ecm::News::ItemsController < Ecm::News::Configuration.base_controller.cons
4
4
  end
5
5
 
6
6
  def show
7
- @item = Ecm::News::Item.published.where(locale: I18n.locale.to_s).find(params[:id])
7
+ @item = Ecm::News::Item.published.where(locale: I18n.locale.to_s).friendly.find(params[:id])
8
8
  end
9
9
  end
@@ -33,7 +33,7 @@ class Ecm::News::Item < ActiveRecord::Base
33
33
 
34
34
  # friendly id
35
35
  extend FriendlyId
36
- friendly_id :title, use: [:slugged, :finders]
36
+ friendly_id :title, use: [:slugged]
37
37
 
38
38
  # validations
39
39
  validates :title, presence: true, uniqueness: true
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '2.0.5'
3
+ VERSION = '2.0.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-27 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '5.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
71
  requirement: !ruby/object:Gem::Requirement