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: 2199ef098b3b99353a45595e402dda98b4e98b2e7cca1f4c6db8c275a554559b
4
- data.tar.gz: c01c8d8f89f64973d37338ba60429ff3785d5eadbfb623dbd37e82f7d7bfe860
3
+ metadata.gz: d5d2e7260966fbf6c4232d7a9750ccde96ba04bc234b770aedd47f934ac5274d
4
+ data.tar.gz: 4b8d78f9e17a958ea0cf6486c5ea913a3afda356fe0fbefdcb1acce76e175e11
5
5
  SHA512:
6
- metadata.gz: 1126286c08d7ba994116d3a130f5bf682cfa0d1fbc603e727f34e0f5a9bda02ab5b7b4e9fd3483b53f3fa76b5b0b2c1c8077f700d5c2e5d079b8a9655edf9aa0
7
- data.tar.gz: 525eb6fe8a6a07f648303f6aec430ded090df9266b71856d0937583cde191e1fe57e480f386ab3d07f516f5a79f6cbafd43d2e6f1b54f79cc48f619f869a71dd
6
+ metadata.gz: 2b1634e907a0e0a2baae5dff8c6c4ca468f2684bf7c880a7d5413594c2cb06d12e2e5a9b8e53029b7492ca28d598f0db4e9c821c9bdcda818969e6ff5f13b892
7
+ data.tar.gz: 622b7f77b49a1cae067296a11df2e9fb93adb7ba8efceeafa9530cbb3cc1b9ed1f84ac8210ea323203fefc521f1a0fb76c58c613cedba6a2c0ea91471844c389
data/CHANGELOG.rdoc CHANGED
@@ -1,4 +1,7 @@
1
- = 3.7.11 (not released yet)
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
 
@@ -3,7 +3,7 @@ module ActiveScaffold
3
3
  MAJOR = 3
4
4
  MINOR = 7
5
5
  PATCH = 11
6
- FIX = nil
6
+ FIX = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, FIX].compact.join('.')
9
9
  end
@@ -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
- ActiveSupport::Deprecation.warn warning
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: 2024-12-17 00:00:00.000000000 Z
11
+ date: 2025-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails