infopark_rails_connector 6.8.0.480.261594408 → 6.8.0.498.46559598

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,9 +61,9 @@ module RailsConnector
61
61
  obj.body_data_url
62
62
  elsif obj.binary? && !obj.file_extension.blank?
63
63
  __send__("cms_id_#{path_or_url}",
64
- options.merge(:id => obj.id, :name => obj.name, :format => obj.file_extension))
64
+ options.merge(:id => obj.id, :slug => obj.slug.presence, :format => obj.file_extension))
65
65
  else
66
- routing_options = options.merge(:id => obj.id, :name => obj.name.presence)
66
+ routing_options = options.merge(:id => obj.id, :slug => obj.slug.presence)
67
67
  __send__("cms_id_#{path_or_url}", routing_options)
68
68
  end
69
69
  end
data/config/cms_routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
  root :to => 'rails_connector/cms_dispatch#index'
3
- match ':id(/:name)',
3
+ match ':id(/*slug)',
4
4
  :to => 'rails_connector/cms_dispatch#index',
5
5
  :constraints => { :id => /\d+|[0-9a-f]{16}/ },
6
6
  :as => "cms_id"
@@ -160,6 +160,7 @@ module RailsConnector
160
160
  unless Rails.configuration.cache_classes
161
161
  after_initialize
162
162
  NamedLink.reset_cache
163
+ Obj.reset_type_cache
163
164
  initialize_addon_mixins
164
165
  end
165
166
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector
3
3
  version: !ruby/object:Gem::Version
4
- hash: 523189551
4
+ hash: 93119979
5
5
  prerelease:
6
6
  segments:
7
7
  - 6
8
8
  - 8
9
9
  - 0
10
- - 480
11
- - 261594408
12
- version: 6.8.0.480.261594408
10
+ - 498
11
+ - 46559598
12
+ version: 6.8.0.498.46559598
13
13
  platform: ruby
14
14
  authors:
15
15
  - Infopark AG
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-12-12 00:00:00 +01:00
20
+ date: 2012-12-13 00:00:00 +01:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency