README.md in dir_model-0.7.0 vs README.md in dir_model-0.7.1
- old
+ new
@@ -110,9 +110,26 @@
'sector_1'
end
end
```
+### Import Callbacks
+`DirModel::Import::Dir` can be subclassed to access
+[`ActiveModel::Callbacks`](http://api.rubyonrails.org/classes/ActiveModel/Callbacks.html).
+
+* next - `before`, `around`, or `after` each change in `current_dir_model`
+
+and implement the callbacks:
+```ruby
+class ImportDir < DirModel::Import::Dir
+ before_next :track_progress
+
+ def track_progress
+ ...
+ end
+end
+```
+
### Export
```ruby
class BasicDirModel
include DirModel::Model