Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/persistent_params.rb
Class Method Summary collapse
- .persists_params(**options) {|persistent_params_config| ... } ⇒ Object
- .persists_scopes(**options, &block) ⇒ Object
Class Method Details
.persists_params(**options) {|persistent_params_config| ... } ⇒ Object
75 76 77 78 79 |
# File 'lib/persistent_params.rb', line 75 def self.persists_params(**) include PersistentParams persistent_params_config() yield persistent_params_config if block_given? end |
.persists_scopes(**options, &block) ⇒ Object
81 82 83 |
# File 'lib/persistent_params.rb', line 81 def self.persists_scopes(**, &block) persists_params(params_method: :current_scopes, **, &block) end |