Skip to content

Commit 4c79200

Browse files
committed
Merge branch '4-0-stable'
2 parents 0551d71 + 9e17c89 commit 4c79200

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

CHANGELOG.rdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
- Rename active_scaffold_habtm_joins to active_scaffold_joins, active_scaffold_habtm_joins is now deprecated
1515
- Support sorted_association_options_find with model name prefix
1616

17+
= 4.0.13
18+
- Fix security_methods on destroy_existing
19+
1720
= 4.0.12.2
1821
- Filter includes for the selected model in select form_ui when column is a polymorphic association, as includes for polymorphic association may be a hash with the polymorphic association as key and associations of different models in the value
1922

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GIT
77
PATH
88
remote: .
99
specs:
10-
active_scaffold (4.0.12.2)
10+
active_scaffold (4.0.13)
1111
dartsass-sprockets (~> 3.2.0)
1212
ice_nine (~> 0.11)
1313
rails (>= 5.2.0)

gemfiles/Gemfile.rails-7.0.x.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_scaffold (4.0.12.2)
4+
active_scaffold (4.0.13)
55
dartsass-sprockets (~> 3.2.0)
66
ice_nine (~> 0.11)
77
rails (>= 5.2.0)

gemfiles/Gemfile.rails-7.1.x.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_scaffold (4.0.12.2)
4+
active_scaffold (4.0.13)
55
dartsass-sprockets (~> 3.2.0)
66
ice_nine (~> 0.11)
77
rails (>= 5.2.0)

gemfiles/Gemfile.rails-7.2.x.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_scaffold (4.0.12.2)
4+
active_scaffold (4.0.13)
55
dartsass-sprockets (~> 3.2.0)
66
ice_nine (~> 0.11)
77
rails (>= 5.2.0)

lib/active_scaffold/actions/nested.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def self.include_habtm_actions(config)
144144
unless config.action_links['destroy_existing']
145145
config.action_links.add('destroy_existing', label: :remove, type: :member, confirm: :are_you_sure_to_delete,
146146
method: :delete, position: false,
147-
security_method: :add_existing_authorized?,
148-
ignore_method: :add_existing_ignore?)
147+
security_method: :delete_existing_authorized?,
148+
ignore_method: :delete_existing_ignore?)
149149
end
150150
config.action_links['destroy'].ignore_method = :habtm_delete_ignore? if config.actions.include?(:delete)
151151
end

lib/active_scaffold/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module ActiveScaffold
22
module Version
33
MAJOR = 4
44
MINOR = 0
5-
PATCH = 12
6-
FIX = 2
5+
PATCH = 13
6+
FIX = nil
77

88
STRING = [MAJOR, MINOR, PATCH, FIX].compact.join('.')
99
end

0 commit comments

Comments
 (0)