From a4c8996522b9aded16649c506694e4f1e4d22521 Mon Sep 17 00:00:00 2001 From: Saulius Grigaliunas Date: Mon, 15 Apr 2013 15:27:58 +0300 Subject: [PATCH] Improve docs for the TaricImporter::ProcessorOverrides --- lib/taric_importer/processor_overrides.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/taric_importer/processor_overrides.rb b/lib/taric_importer/processor_overrides.rb index cbc33592..773925b5 100644 --- a/lib/taric_importer/processor_overrides.rb +++ b/lib/taric_importer/processor_overrides.rb @@ -1,5 +1,6 @@ # If certain models need to be processed out in a different way -# (see #default_process) this is a the place for these overrides, e.g.: +# (see RecordProcessor#default_process) this is a the place for +# these overrides, e.g.: # # Language: { # create: ->(attributes) { @@ -9,8 +10,9 @@ # # NOTE: in case of :create and :updates must return instance of model as # it is going to be validated. :destroy returns nil, because we do not -# want to be validating non existant records. -# NOTE: takes one argument: the arguments. +# want to be validating non existent records. +# NOTE: takes one argument: for attributes it's the attributes +# hash (string based). For create, update, destroy it's the record instance. # # Can also mutate attributes for all record operations, e.g.: #