method
remove_contradicting_conditions!
v1.1.6 -
Show latest stable
-
0 notes -
Class: ActionController::Filters::ClassMethods
- 1.0.0
- 1.1.6 (0)
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
remove_contradicting_conditions!(filters, conditions)
private
Hide source
# File actionpack/lib/action_controller/filters.rb, line 338 def remove_contradicting_conditions!(filters, conditions) return unless conditions[:only] filters.each do |filter| next unless included_actions_for_filter = (read_inheritable_attribute('included_actions') || {})[filter] [*conditions[:only]].each do |conditional_action| conditional_action = conditional_action.to_s included_actions_for_filter.delete(conditional_action) if included_actions_for_filter.include?(conditional_action) end end end