lib/snfoil/crud/change_context.rb in snfoil-1.0.1 vs lib/snfoil/crud/change_context.rb in snfoil-1.1.0
- old
+ new
@@ -25,10 +25,10 @@
included do
include SetupContext
intervals :setup_change, :before_change, :after_change, :after_change_success, :after_change_failure
- setup_change do |options|
+ setup_change do |**options|
options[:pre_change_context_params] ||= options[:params]
options[:params] = options[:params].select { |params| self.class.i_params.include?(params) } if self.class.i_params
options
end