lib/sn_foil/contexts/create_context.rb
# This method is private to help protect the order of execution of hooks
This method is private to help protect the order of execution of hooks
This method is private to help protect the order of execution of hooks
def create_hooks(options)
        options = before_create_save(**options)
        save_successful = options[:object].save
        options[:object] = unwrap_object(options[:object])
        options = if save_successful
                    after_create_save_success(**options)
                  else
                    after_create_save_failure(**options)
                  end
        after_create_save(**options)
      end
def create_hooks ( options ) options = before_create_save ( ** options ) save_successful = options [ :object ] . save options [ :object ] = unwrap_object ( options [ :object ] ) options = if save_successful after_create_save_success ( ** options ) else after_create_save_failure ( ** options ) end after_create_save ( ** options ) end
This method is private to help protect the order of execution of hooks
This method is private to help protect the order of execution of hooks
options
<not_specific>