Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Commit

Permalink
Improve docs for the TaricImporter::ProcessorOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
saulius committed Apr 15, 2013
1 parent 12d80a0 commit a4c8996
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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) {
Expand All @@ -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.:
#
Expand Down

0 comments on commit a4c8996

Please sign in to comment.