From 51c0866fe4a36f14448d047391bb9415d962b14f Mon Sep 17 00:00:00 2001 From: Kai Schlichting Date: Sun, 5 Oct 2014 16:34:29 +0200 Subject: [PATCH] README: small fixes for defining custom commands --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d893180..d6870a06 100644 --- a/README.md +++ b/README.md @@ -408,7 +408,7 @@ Add a custom task like the ones defined by the gem: ```ruby # my_commands.rb -class MyCommands +module MyCommands include ::I18n::Tasks::Command::Collection cmd :my_task, desc: 'my custom task' def my_task(opts = {}) @@ -419,7 +419,7 @@ end ```yaml # config/i18n-tasks.yml <% - require 'my_commands' + require './my_commands' I18n::Tasks::Commands.send :include, MyCommands %> ```