active_scaffold_sortable 3.2.12 → 3.2.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9c9467a359a3f696bb77c77620edcd43e79a71
|
4
|
+
data.tar.gz: eeb731b0be39818643fe49b8a770a9815d258ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e8f17c2497b2411298c259e4f018f3b85b6a7095994a90b8360eceefe0b943ef3bbb2f13dc69e906009c544e2836ddf127c50d35fa9f7c90024311216fdd73
|
7
|
+
data.tar.gz: 343a79b6ebe39e2bef4eb8ea39d4313bffb434597d13cd815b492415c7a9d94784789e08edf07beae607cc93a8a82af610bfb33c432b93abdfe24864bac22b18
|
@@ -1,5 +1,5 @@
|
|
1
1
|
.sortable-handle { cursor: move; }
|
2
|
-
.active-scaffold .sub-form table td.sortable-handle { display: table-cell; }
|
2
|
+
.active-scaffold .sub-form table td.sortable-handle { display: table-cell; visibility: visible; }
|
3
3
|
.active-scaffold .sub-form tbody.sortable-highlight { display: table-row; }
|
4
4
|
td.sortable-handle, .active-scaffold .sub-form table td.sortable-handle {
|
5
5
|
background: image-url('active_scaffold/sortable.png') no-repeat center center;
|
@@ -6,7 +6,7 @@ module ActiveScaffoldSortable
|
|
6
6
|
|
7
7
|
def update_column_from_params_with_sortable(parent_record, column, attribute, avoid_changes = false)
|
8
8
|
update_column_from_params_without_sortable(parent_record, column, attribute, avoid_changes).tap do |value|
|
9
|
-
if column.
|
9
|
+
if column.association.try(:collection?)
|
10
10
|
config = active_scaffold_config_for(column.association.klass)
|
11
11
|
if config.actions.include?(:sortable)
|
12
12
|
parent_record.association(column.association.name).target = value.sort_by(&config.sortable.column.name)
|
@@ -15,4 +15,4 @@ module ActiveScaffoldSortable
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'minitest/autorun'
|
5
5
|
# You can use "rake test AR_VERSION=2.0.5" to test against 2.0.5, for example.
|
6
6
|
# The default is to use the latest installed ActiveRecord.
|
7
7
|
if ENV["AR_VERSION"]
|
@@ -15,24 +15,16 @@ require 'action_controller'
|
|
15
15
|
require 'action_view/test_case'
|
16
16
|
require 'action_mailer'
|
17
17
|
require 'active_support'
|
18
|
-
require '
|
19
|
-
|
18
|
+
require 'rails'
|
19
|
+
require 'active_scaffold'
|
20
|
+
require 'active_scaffold_sortable'
|
20
21
|
|
21
|
-
|
22
|
-
Rails.configuration = Rails::Configuration.new
|
22
|
+
require 'mocha/setup'
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
require 'mocha'
|
27
|
-
begin
|
28
|
-
require 'redgreen'
|
29
|
-
rescue LoadError
|
30
|
-
end
|
31
|
-
|
32
|
-
ActiveSupport::Dependencies.load_paths = %w(test/models test/controllers lib ../active_scaffold/lib).map {|dir| File.dirname(__FILE__) + "/../#{dir}"}
|
33
|
-
$:.unshift *ActiveSupport::Dependencies.load_paths
|
24
|
+
#ActiveSupport::Dependencies.load_paths = %w(test/models test/controllers lib ../active_scaffold/lib).map {|dir| File.dirname(__FILE__) + "/../#{dir}"}
|
25
|
+
#$:.unshift *ActiveSupport::Dependencies.load_paths
|
34
26
|
|
35
|
-
require File.join(File.dirname(__FILE__), '../../active_scaffold/
|
27
|
+
require File.join(File.dirname(__FILE__), '../../active_scaffold/lib/active_scaffold')
|
36
28
|
require 'sortable'
|
37
29
|
|
38
30
|
ActionController::Routing::Routes.draw do |map|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_sortable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active_scaffold
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 3.3.0.rc3
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 3.3.0.rc3
|
28
28
|
description: Sort Tree or List Structures by Drag n Drop
|
@@ -82,17 +82,17 @@ require_paths:
|
|
82
82
|
- lib
|
83
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.10
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Drag n Drop Sorting for Activescaffold
|