publinator 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  <% if @publishable.respond_to?(:publishables) && @publishable.publishables.length > 0 && !@publishable.publishables.first.class.nil? %>
4
4
  <ol id="documents" type="A">
5
- <%= render :collection => @publishable.publishables.order('position'), :partial => "/object_blocks/#{@publishable.publishables.first.class.to_s.demodulize.underscore}" %>
5
+ <%= render :collection => @publishable.publishables, :partial => "/object_blocks/#{@publishable.publishables.first.class.to_s.demodulize.underscore}" %>
6
6
  </ol>
7
7
  <% end %>
8
8
 
@@ -19,7 +19,8 @@ module Publinator
19
19
  has_many :asset_items,
20
20
  :as => :assetable,
21
21
  :class_name => "Publinator::AssetItem",
22
- :foreign_key => :assetable_id
22
+ :foreign_key => :assetable_id,
23
+ :order => 'position'
23
24
 
24
25
 
25
26
  accepts_nested_attributes_for :asset_items, :reject_if => :all_blank
@@ -1,3 +1,3 @@
1
1
  module Publinator
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
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.32
4
+ version: 0.0.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -389,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
389
389
  version: '0'
390
390
  segments:
391
391
  - 0
392
- hash: -1873217647035730028
392
+ hash: 1614099730253188377
393
393
  required_rubygems_version: !ruby/object:Gem::Requirement
394
394
  none: false
395
395
  requirements:
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
398
  version: '0'
399
399
  segments:
400
400
  - 0
401
- hash: -1873217647035730028
401
+ hash: 1614099730253188377
402
402
  requirements: []
403
403
  rubyforge_project:
404
404
  rubygems_version: 1.8.24