Skip to content

Commit

Permalink
Merge pull request #95 from lacco/master
Browse files Browse the repository at this point in the history
README: small fixes for defining custom commands
  • Loading branch information
glebm committed Oct 5, 2014
2 parents fa07a35 + 51c0866 commit c43cd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand All @@ -419,7 +419,7 @@ end
```yaml
# config/i18n-tasks.yml
<%
require 'my_commands'
require './my_commands'
I18n::Tasks::Commands.send :include, MyCommands
%>
```
Expand Down

0 comments on commit c43cd5c

Please sign in to comment.