active_scaffold 3.7.11 → 3.7.11.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5d2e7260966fbf6c4232d7a9750ccde96ba04bc234b770aedd47f934ac5274d
|
4
|
+
data.tar.gz: 4b8d78f9e17a958ea0cf6486c5ea913a3afda356fe0fbefdcb1acce76e175e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1634e907a0e0a2baae5dff8c6c4ca468f2684bf7c880a7d5413594c2cb06d12e2e5a9b8e53029b7492ca28d598f0db4e9c821c9bdcda818969e6ff5f13b892
|
7
|
+
data.tar.gz: 622b7f77b49a1cae067296a11df2e9fb93adb7ba8efceeafa9530cbb3cc1b9ed1f84ac8210ea323203fefc521f1a0fb76c58c613cedba6a2c0ea91471844c389
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
= 3.7.11
|
1
|
+
= 3.7.11.1
|
2
|
+
- Fix action link on association column named record
|
3
|
+
|
4
|
+
= 3.7.11
|
2
5
|
- Add partial list_messages_content to reduce code duplication, and better support replacing list view with other way to render records
|
3
6
|
- Support selector for records body in create_record_row JS method, better support replacing list view with other way to render records
|
4
7
|
- Improve detection of member action links when list view is replaced with other structure, based on 'record' html class, instead of tags
|
@@ -1288,8 +1288,8 @@
|
|
1288
1288
|
if (element.length > 0) {
|
1289
1289
|
element.data(); // $ 1.4.2 workaround
|
1290
1290
|
if (typeof(element.data('action_link')) === 'undefined' && !element.hasClass('as_adapter')) {
|
1291
|
-
var parent = element.closest('.record');
|
1292
|
-
if (parent.length === 0) parent = element.closest('.actions');
|
1291
|
+
var parent = element.parent().closest('.record');
|
1292
|
+
if (parent.length === 0) parent = element.parent().closest('.actions');
|
1293
1293
|
if (parent.is('.record')) {
|
1294
1294
|
// record action
|
1295
1295
|
var target = parent.find('a.as_action');
|
@@ -177,9 +177,9 @@ module ActiveScaffold::DataStructures
|
|
177
177
|
attr_accessor :css_class
|
178
178
|
|
179
179
|
def name=(value)
|
180
|
-
ActiveSupport::Deprecation.warn 'Changing name is deprecated, use css_class to change the class html attribute'
|
181
180
|
self.css_class = value
|
182
181
|
end
|
182
|
+
ActiveScaffold.deprecator.deprecate_methods(self, :name= => :css_class=)
|
183
183
|
|
184
184
|
protected
|
185
185
|
|
data/lib/active_scaffold.rb
CHANGED
@@ -68,7 +68,7 @@ module ActiveScaffold
|
|
68
68
|
end
|
69
69
|
when :prototype then warning += ', convert your app to jQuery, and remove this call'
|
70
70
|
end
|
71
|
-
|
71
|
+
deprecator.warn warning
|
72
72
|
@@js_framework = framework
|
73
73
|
end
|
74
74
|
|
@@ -110,6 +110,10 @@ module ActiveScaffold
|
|
110
110
|
def self.defaults(&block)
|
111
111
|
ActiveScaffold::Config::Core.configure(&block)
|
112
112
|
end
|
113
|
+
|
114
|
+
def self.deprecator
|
115
|
+
@deprecator ||= ActiveSupport::Deprecation.new('4.0', 'ActiveScaffold')
|
116
|
+
end
|
113
117
|
end
|
114
118
|
require 'active_scaffold/engine'
|
115
119
|
require 'ice_nine'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.11
|
4
|
+
version: 3.7.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Many, see README
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|