locale_js 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ class LocaleJs::LocaleController < ApplicationController
22
22
  # initialize i18n
23
23
  I18n.translate :hello
24
24
  @locale = I18n.backend.send(:translations)[I18n.locale]
25
- render :template => 'locale/i18n'
25
+ render :partial => 'locale/i18n', :formats => [:js]
26
26
  end
27
27
 
28
28
  def action_missing(action)
@@ -1,4 +1,4 @@
1
1
  module LocaleJs
2
2
  # locale_js version
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locale_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-10-09 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubygems-tasks
@@ -76,7 +76,7 @@ files:
76
76
  - app/controllers/.DS_Store
77
77
  - app/controllers/locale_js/locale_controller.rb
78
78
  - app/views/.DS_Store
79
- - app/views/locale/i18n.js.erb
79
+ - app/views/locale/_i18n.js.erb
80
80
  - config/routes.rb
81
81
  - lib/locale_js.rb
82
82
  - lib/locale_js/engine.rb