publinator 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -41,10 +41,10 @@ module Publinator
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def collection_li_tag(object)
|
45
|
-
collection_title = object.first.collection_name
|
44
|
+
def collection_li_tag(object, li_collection_title = nil, li_collection_path = nil)
|
45
|
+
collection_title = li_collection_title.present? ? li_collection_title : object.first.collection_name
|
46
46
|
collection_slug = object.first.class.to_s.tableize.humanize
|
47
|
-
collection_path = "/#{object.first.class.to_s.tableize}"
|
47
|
+
collection_path = li_collection_path.present? ? li_collection_path : "/#{object.first.class.to_s.tableize}"
|
48
48
|
|
49
49
|
# object is an array
|
50
50
|
# 1. add a link to the collection name
|
data/lib/publinator/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -350,7 +350,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
350
350
|
version: '0'
|
351
351
|
segments:
|
352
352
|
- 0
|
353
|
-
hash:
|
353
|
+
hash: -452200708498209295
|
354
354
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
355
|
none: false
|
356
356
|
requirements:
|
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
359
359
|
version: '0'
|
360
360
|
segments:
|
361
361
|
- 0
|
362
|
-
hash:
|
362
|
+
hash: -452200708498209295
|
363
363
|
requirements: []
|
364
364
|
rubyforge_project:
|
365
365
|
rubygems_version: 1.8.24
|