Skip to content

helper modules inside execution context #38

Description

@senny

We have a lot of data normalization to do in our migration. It would be very helpful to be able to extend the ExecutionContext of the mappings. I think we should make this part of the DataImport API so that we are able to refactor the internals without having to change all the client code.

I'm thinking about something like:

module MyHelperModule
  def normalize(text)
    text.downcase
  end
end

DataImport.helper(MyHelperModule)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions