infopark_fiona_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.
Files changed (2) hide show
  1. data/lib/rails_connector/obj.rb +17 -0
  2. metadata +5 -5
@@ -59,6 +59,10 @@ module RailsConnector
59
59
  self
60
60
  end
61
61
 
62
+ def self.reset_type_cache
63
+ # We don't cache types at all here.
64
+ end
65
+
62
66
  # @api public
63
67
  def permissions
64
68
  @@use_cached_permissions ? attr_dict.permissions : super
@@ -128,6 +132,19 @@ module RailsConnector
128
132
  self.id == (@@homepage_id ||= self.class.homepage.id)
129
133
  end
130
134
 
135
+ # This method is used to calculate a part of a URL of an obj.
136
+ #
137
+ # The routing schema: <code><em><obj.id></em>/<em><obj.slug></em></code>
138
+ #
139
+ # The default is +obj.name+.
140
+ #
141
+ # You can customize this part by overwriting +obj.slug+ in {ObjExtentions}.
142
+ # @return [String]
143
+ # @api public
144
+ def slug
145
+ name
146
+ end
147
+
131
148
  # Returns the title of the content or the name.
132
149
  # @api public
133
150
  def display_title
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona_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