Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

railtie

  • Loading branch information...
commit a3689fbaa539590cbfe284ef5b01ffeaeef4aa13 1 parent 86077e7
@bernardo bernardo authored
Showing with 11 additions and 0 deletions.
  1. +1 −0  lib/i18n_yaml_sorter.rb
  2. +10 −0 lib/i18n_yaml_sorter/railtie.rb
View
1  lib/i18n_yaml_sorter.rb
@@ -1,4 +1,5 @@
require 'i18n_yaml_sorter/sorter'
+require 'i18n_yaml_sorter/railtie'
module I18nYamlSorter
View
10 lib/i18n_yaml_sorter/railtie.rb
@@ -0,0 +1,10 @@
+module I18nYamlSorter
+ if defined? Rails::Railtie
+ require 'rails'
+ class Railtie < Rails::Railtie
+ rake_tasks do
+ load "tasks/i18n_yaml_sorter.rake"
+ end
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.