rails_admin_hstore_translate 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9edd83efe8b9ba143b4f9149aa6c23f76da4c158
4
- data.tar.gz: 0c5ab6cffab97bda6b6b1dc2616f2ddd7b606a2e
3
+ metadata.gz: 1976d0d700d6e3cd50ff8baa20c20fe6856f721f
4
+ data.tar.gz: 2d533112c09f8a2b7107363626cd47775f96eb69
5
5
  SHA512:
6
- metadata.gz: 156054968942196e5dd74fa350371cf05b4ce4fbc7a988190e05ac6241a730ca1bcaadbd4f9adccd52e14e032ade4b5802d3b85c380b9fac8a18ff1d4249c4ff
7
- data.tar.gz: f45478d4694002255f2bf829f61830c14d155616e9244b58367a8cf7b04a0ad8a99c626a1ffbd500435223beda7b85da0e7dadc72b4908cdc8a945b6f98347b5
6
+ metadata.gz: d44484dc4ae5fbe72bf93e799d3dbd4e49acc8a0f86c50fe49d4cba0f6d28e5236eaeead4dcd7c743a4894770f94da5d4ec0dc3a54d8b1eb3d567f84e888575b
7
+ data.tar.gz: 37a9b3bed68393e9868c741df9da9cc835389ca28e57d9e2a43b15cd5997fa19fe5b8df63d70b189af54ff3abb3f3398736ee760da19a343d6bd083fc573e126
data/README.md CHANGED
@@ -4,11 +4,9 @@
4
4
 
5
5
  Heavily based on [RailsAdminGlobalizeField](https://github.com/scarfacedeb/rails_admin_globalize_field) and [rails_admin_mongoid_localize_field](https://github.com/sudosu/rails_admin_mongoid_localize_field)
6
6
 
7
+ It adds custom field type that you can use for hstore translations association.
7
8
 
8
- It adds custom field type that you can use for globalize translations association.
9
-
10
- This gem uses Translation models generated by globalize, so you don't need to add any additional model to your app (as some older globalize3 gists suggested).
11
-
9
+ Only PostgreSQL is supported.
12
10
 
13
11
  ## Installation
14
12
 
@@ -3,5 +3,5 @@
3
3
  - val = form.object.send("#{field.name}_translations").try(:[], locale.to_s)
4
4
  %div
5
5
  = localized_field.label locale
6
- = localized_field.send field_type, locale, html_attributes.reverse_merge({ :value => field.value.try(:[], locale.to_s) })
6
+ = localized_field.send field_type, locale, html_attributes.reverse_merge({ :value => val })
7
7
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminHstoreTranslate
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_hstore_translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.4.5
128
+ rubygems_version: 2.4.5.1
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Tabbed interface and custom field type for hstore_translate translations