localyzed 0.0.0.5 → 0.0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,10 @@ module Localyzed
3
3
  def self.configure(config)
4
4
  @@user_interface = config[:user_interface]
5
5
  end
6
+
7
+ def self.localyze_routes(translations_file,options={})
8
+ ActionDispatch::Routing::Translator.translate_from_file(translations_file, options)
9
+ end
6
10
  end
7
11
 
8
12
  require "localyzed/controllers/action_controller_extension"
@@ -1,3 +1,3 @@
1
1
  module Localyzed
2
- VERSION = "0.0.0.5"
2
+ VERSION = "0.0.0.6"
3
3
  end
data/lib/localyzed.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Localyzed
2
- require 'localyzed/base'
3
- require 'localyzed/railties'
4
- require 'localyzed/rack_rewrite'
5
- require 'rails-translate-routes'
6
2
  end
3
+ require 'localyzed/base'
4
+ require 'localyzed/railties'
5
+ require 'localyzed/rack_rewrite'
6
+ require 'rails-translate-routes'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localyzed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.5
4
+ version: 0.0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-02 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails