refinerycms-core 2.0.7 → 2.0.8

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.
data/lib/refinery/crud.rb CHANGED
@@ -297,7 +297,7 @@ module Refinery
297
297
 
298
298
  def update_child_positions(_node, #{singular_name})
299
299
  list = _node['children']['0']
300
- list.sort.map { |item| item[1] }.each_with_index do |child, index|
300
+ list.sort_by {|k, v| k.to_i}.map { |item| item[1] }.each_with_index do |child, index|
301
301
  child_id = child['id'].split(/#{singular_name}\_?/).reject(&:empty?).first
302
302
  child_#{singular_name} = #{class_name}.where(:id => child_id).first
303
303
  child_#{singular_name}.move_to_child_of(#{singular_name})
@@ -2,7 +2,7 @@ module Refinery
2
2
  class Version
3
3
  @major = 2
4
4
  @minor = 0
5
- @tiny = 7
5
+ @tiny = 8
6
6
  @build = nil
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-08-16 00:00:00.000000000 Z
16
+ date: 2012-08-18 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: acts_as_indexed
@@ -702,7 +702,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
702
702
  version: '0'
703
703
  segments:
704
704
  - 0
705
- hash: 2236946699019047872
705
+ hash: 4442210151726982447
706
706
  required_rubygems_version: !ruby/object:Gem::Requirement
707
707
  none: false
708
708
  requirements:
@@ -711,7 +711,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
711
711
  version: '0'
712
712
  segments:
713
713
  - 0
714
- hash: 2236946699019047872
714
+ hash: 4442210151726982447
715
715
  requirements: []
716
716
  rubyforge_project: refinerycms
717
717
  rubygems_version: 1.8.22