aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/ext/dumm.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-15 14:37:05 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-15 14:37:05 +0200
commit1ee116321401de604b20a9a6eba0138c0b9dc9ab (patch)
tree85df885bbf403b645ad7ef5763373914039d2809 /src/dumm/ext/dumm.c
parent9e7a45bec2df828ff04b19a9dd732fd60f6b81a7 (diff)
downloadstrongswan-1ee116321401de604b20a9a6eba0138c0b9dc9ab.tar.bz2
strongswan-1ee116321401de604b20a9a6eba0138c0b9dc9ab.tar.xz
dumm: Sort templates by name
Diffstat (limited to 'src/dumm/ext/dumm.c')
-rw-r--r--src/dumm/ext/dumm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dumm/ext/dumm.c b/src/dumm/ext/dumm.c
index 603fac088..5acda3a9c 100644
--- a/src/dumm/ext/dumm.c
+++ b/src/dumm/ext/dumm.c
@@ -740,6 +740,7 @@ static VALUE template_each(int argc, VALUE *argv, VALUE class)
static void template_init()
{
rbc_template = rb_define_class_under(rbm_dumm , "Template", rb_cObject);
+ rb_include_module(rb_class_of(rbc_template), rb_mEnumerable);
rb_define_singleton_method(rbc_template, "load", template_load, 1);
rb_define_singleton_method(rbc_template, "unload", template_unload, 0);