joshmcarthur / spree-import-products

A Spree extension to allow users to batch upload Products from a CSV file using Delayed Job
http://spreecommerce.com/extensions/103-import-products
BSD 3-Clause "New" or "Revised" License
80 stars 99 forks source link

after_product_built hook #6

Closed jzw closed 13 years ago

jzw commented 13 years ago

Implemented a hook that will allow users of this extension to implement an after_product_built in their product_import_decorator.rb that will get called after each product is built.

joshmcarthur commented 13 years ago

Hi jzw,

Sorry I've taken so long to get to this - I meant to look at how Spree does it's hooks, and then I forgot :-(

This looks good - it's a pity there's not a nicer way of adding the hook, but class_eval'ing will do for this sort of scenario.

Thanks for your contribution!

jzw commented 13 years ago

No problem, happy to help!