publinator 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1 +1,5 @@
1
1
  <%= m(@publishable.body) %>
2
+
3
+ <% if @publishable.respond_to?(:publishables) %>
4
+ <%= render :collection => @publishable.publishables, :partial => "summary" %>
5
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module Publinator
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
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.14
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: 4072479845033416552
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: 4072479845033416552
362
+ hash: -452200708498209295
363
363
  requirements: []
364
364
  rubyforge_project:
365
365
  rubygems_version: 1.8.24