publinator 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module Publinator
|
|
12
12
|
render "publinator/publishable/show"
|
13
13
|
end
|
14
14
|
else
|
15
|
-
@publishables =
|
15
|
+
@publishables = params[:publishable_type].classify.constantize.all
|
16
16
|
begin
|
17
17
|
render "#{params[:publishable_type]}/index"
|
18
18
|
rescue ActionView::MissingTemplate
|
@@ -3,10 +3,13 @@ module Publinator
|
|
3
3
|
self.table_name = 'publinator_pages'
|
4
4
|
acts_as_publishable
|
5
5
|
attr_accessible :body, :kicker, :subtitle, :teaser, :title, :section, :asset_items, :asset_item, :asset_file
|
6
|
-
alias_attribute :name, :title
|
7
6
|
|
8
7
|
def asset_types
|
9
8
|
['header']
|
10
9
|
end
|
10
|
+
|
11
|
+
def name
|
12
|
+
title
|
13
|
+
end
|
11
14
|
end
|
12
15
|
end
|
@@ -1 +1 @@
|
|
1
|
-
<%= link_to summary.
|
1
|
+
<%= link_to summary.title, summary.path %><br>
|
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.14
|
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: 4072479845033416552
|
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: 4072479845033416552
|
363
363
|
requirements: []
|
364
364
|
rubyforge_project:
|
365
365
|
rubygems_version: 1.8.24
|