Module: ModerateParameters::Breadcrumbs
- Included in:
- ActionController::Parameters
- Defined in:
- lib/moderate_parameters/breadcrumbs.rb
Instance Method Summary collapse
- #[]=(key, _value) ⇒ Object
- #delete(*keys, &block) ⇒ Object
-
#delete_if(&block) ⇒ Object
Alias for #reject!.
- #extract!(*keys) ⇒ Object
-
#keep_if(&block) ⇒ Object
Alias for #select!.
- #merge!(other_hash) ⇒ Object
- #reject!(&block) ⇒ Object
- #reverse_merge!(other_hash) ⇒ Object
- #select!(&block) ⇒ Object
- #slice!(*keys) ⇒ Object
Instance Method Details
#[]=(key, _value) ⇒ Object
5 6 7 8 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 5 def []=(key, _value) internal_param_logging(key, key?(key) ? 'overwritten' : 'added', caller_locations) super end |
#delete(*keys, &block) ⇒ Object
30 31 32 33 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 30 def delete(*keys, &block) internal_method_logging('delete', keys, caller_locations) super end |
#delete_if(&block) ⇒ Object
Alias for #reject!
41 42 43 44 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 41 def delete_if(&block) internal_block_logging('delete_if', caller_locations) super end |
#extract!(*keys) ⇒ Object
20 21 22 23 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 20 def extract!(*keys) internal_method_logging('extract!', keys, caller_locations) super end |
#keep_if(&block) ⇒ Object
Alias for #select!
52 53 54 55 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 52 def keep_if(&block) internal_block_logging('keep_if', caller_locations) super end |
#merge!(other_hash) ⇒ Object
10 11 12 13 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 10 def merge!(other_hash) internal_method_logging('merge!', other_hash.keys, caller_locations) super end |
#reject!(&block) ⇒ Object
35 36 37 38 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 35 def reject!(&block) internal_block_logging('reject!', caller_locations) super end |
#reverse_merge!(other_hash) ⇒ Object
15 16 17 18 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 15 def reverse_merge!(other_hash) internal_method_logging('reverse_merge!', other_hash.keys, caller_locations) super end |
#select!(&block) ⇒ Object
46 47 48 49 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 46 def select!(&block) internal_block_logging('select!', caller_locations) super end |
#slice!(*keys) ⇒ Object
25 26 27 28 |
# File 'lib/moderate_parameters/breadcrumbs.rb', line 25 def slice!(*keys) internal_method_logging('slice!', keys, caller_locations) super end |