trusty-reorder-extension 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 676a4eed215f4c840abe24be2d3f60290095c408
4
- data.tar.gz: 5e4180b0b95b749f2125bb4a541308de89f99752
3
+ metadata.gz: 85a29b0bfe6a80bb75b1a2a8137cc1639c09d8ae
4
+ data.tar.gz: 48fa89e41678847053d4e9e9b317741a28579a8b
5
5
  SHA512:
6
- metadata.gz: a74fbe3c0f729afea7326c34cef0dfc1288cc8b9cbff29cc86d933ebf7f3ad6db9d890e69f487823986e8413f9faacbfe0e8f735a92895a6fadb2975f066133b
7
- data.tar.gz: 3566404ffeb1c658b1f17e9e8e6725bb6a72f9aaa004c419d8e0c1057749822f10e72e5814d6dfe917ac8619610029ed19312b8848a29bfd41e8d611149d9bac
6
+ metadata.gz: 1fbeca623366f31bf391772d8334dc51001a40943828d905869841f3bbb1ac630e1c69d79f3b49453fe219242dc50bbdf4f5e32f77a586197960bda340d7aa7d
7
+ data.tar.gz: fdd214e77df6fa0dbf7be0ddfaa70166ec4d77bd790cb42e590a88aa1a4e086b101ff7c18920d6fa7ad35adab60f9969667d1f98d03760a32b7d824a6f708308
@@ -1,8 +1,9 @@
1
1
  module Reorder::PageExtensions
2
2
  def self.included(base)
3
+
3
4
  base.class_eval {
4
5
  acts_as_list :scope => :parent_id
5
- self.reflections["children"].options[:order] = "position ASC"
6
+ default_scope { order( "position ASC") }
6
7
  }
7
8
 
8
9
  if defined?(Page::NONDRAFT_FIELDS)
@@ -4,7 +4,7 @@ require "trusty-reorder-extension"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "trusty-reorder-extension"
7
- s.version = "2.0.3"
7
+ s.version = "2.0.4"
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Sean Cribbs", "Eric Sipple", "Danielle Greaves"]
10
10
  s.description = %q{Extends Trusty CMS to allow page ordering}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-reorder-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Cribbs
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-13 00:00:00.000000000 Z
13
+ date: 2015-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: acts_as_list
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.4.3
99
+ rubygems_version: 2.4.8
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Extends Trusty CMS to allow page ordering