Commit f1fa5691555bd238ddefbeb58f701751ab0bf88b
- Date: Sun Feb 17 20:11:02 +0000 2008
- Committer: Yurii Rashkovskii (yrashk@gmail.com)
- Author: Yurii Rashkovskii (yrashk@gmail.com)
- Commit SHA1: f1fa5691555bd238ddefbeb58f701751ab0bf88b
- Tree SHA1: b506a54c71ded0e5d8c9cbfce811bb9e4d27e304
when_slot_not_found callback has been added to meta
Commit diff
| |   |
| 53 | 53 | |
| 54 | 54 | end |
| 55 | 55 | |
| 56 | | CALLBACKS = %w(on_initialization before_save after_save) |
| 56 | CALLBACKS = %w(on_initialization before_save after_save when_slot_not_found) |
| 57 | 57 | CALLBACKS.each do |callback_name| |
| 58 | 58 | module_eval %{ |
| 59 | 59 | def #{callback_name}(&block) |
| toggle raw diff |
--- a/strokedb-ruby/lib/document/meta.rb
+++ b/strokedb-ruby/lib/document/meta.rb
@@ -53,7 +53,7 @@ module StrokeDB
end
- CALLBACKS = %w(on_initialization before_save after_save)
+ CALLBACKS = %w(on_initialization before_save after_save when_slot_not_found)
CALLBACKS.each do |callback_name|
module_eval %{
def #{callback_name}(&block) |