activeadmin-localize 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 55cfcbac6759064b40a2b1d379db5e33634b36d6
4
- data.tar.gz: 22bd5b5929d2db62908fa0415db55848eab83506
2
+ SHA256:
3
+ metadata.gz: e7b2113ebd934009875d7c9838c9bafc2ccb8734f107bae4e7cded0005ae4459
4
+ data.tar.gz: eba08e991b1a29237bf07dc603800de95931c29f4cc05aee7b452c3c7b4f413a
5
5
  SHA512:
6
- metadata.gz: e5e1a96abf026d6f5ead267db3973fc101207ba64587635bd55e0df25c1abc031eaf5464ed70f5a5b5d5839d0e1e78862195456bf2536b904984c199fafb2914
7
- data.tar.gz: aec6f2b4c569ede99947ba70695d890ed1bfb734191b53afd5cab713a629c6f8ed6ef40f34db42210ca21b3abaabb447079dd32ca248aadb71f9761d21f1579f
6
+ metadata.gz: ec28350bdd29f5e096c293aa6a8dedcaa80cc4802f465d4d70e1df19e34cd8ec901b52b175102fb8b46080a3d2599386d8a8acd6e5e8fcc2b1ddec4d868b0c0f
7
+ data.tar.gz: 2876c26aeb4299d56084f44c2e100342bbe6023190d24d9db2711b06c292809e4b750d7e3ac25aebcee65608f06d27abd00b3ede45ee944d34dc6147935329e7
data/README.md CHANGED
@@ -6,7 +6,7 @@ Tested with [json_translate](https://github.com/cfabianski/json_translate) but o
6
6
 
7
7
  ## Screenshot
8
8
 
9
- ![AML](https://rscx.ru/aml.jpg)
9
+ ![AL](/screenshots/localize.png?raw=true)
10
10
 
11
11
  ## Installation
12
12
 
@@ -1,6 +1,5 @@
1
1
  require "activeadmin-localize/version"
2
2
  require 'activeadmin-localize/formtastic'
3
- #require 'activeadmin-localize/active_admin'
4
3
  require 'activeadmin-localize/attributes_table'
5
4
  require 'activeadmin-localize/columns'
6
5
  require 'activeadmin-localize/engine'
@@ -63,15 +63,6 @@ module ActiveAdmin
63
63
  end
64
64
  end
65
65
 
66
- #def column_for_attribute(name)
67
- # we only have one column for all locales
68
- #if @obj.respond_to?(:fields)
69
- #@obj.fields[@field]
70
- #else
71
- #@obj.class.columns_hash[@field] || @field.to_s
72
- #end
73
- #end
74
-
75
66
  def method_missing(*args)
76
67
  @obj.send(*args)
77
68
  end
@@ -3,7 +3,6 @@ module Formtastic
3
3
  def localized_input(name, args = {})
4
4
  t = self.object.send("#{name}_translations")
5
5
  field = ActiveAdmin::Localize::Field.new(self.object, name)
6
-
7
6
  ret = ''
8
7
  self.semantic_fields_for "#{name}_translations", field do |lf|
9
8
  ::ActiveAdmin::Localize.locales.each do |locale|
@@ -32,6 +31,7 @@ module Formtastic
32
31
  end
33
32
  end
34
33
 
34
+ template.concat(ret.html_safe) if template.output_buffer && template.assigns[:has_many_block]
35
35
  ret.html_safe
36
36
  end
37
37
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Localize
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-localize
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
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-24 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -301,7 +301,6 @@ files:
301
301
  - config/locales/en.rails_admin_state_machine.yml
302
302
  - config/locales/ru.rails_admin_state_machine.yml
303
303
  - lib/activeadmin-localize.rb
304
- - lib/activeadmin-localize/active_admin.rb
305
304
  - lib/activeadmin-localize/attributes_table.rb
306
305
  - lib/activeadmin-localize/columns.rb
307
306
  - lib/activeadmin-localize/engine.rb
@@ -327,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
326
  version: '0'
328
327
  requirements: []
329
328
  rubyforge_project:
330
- rubygems_version: 2.6.13
329
+ rubygems_version: 2.7.3
331
330
  signing_key:
332
331
  specification_version: 4
333
332
  summary: Localized fields for active admin
@@ -1,7 +0,0 @@
1
- #module ActiveAdmin
2
- #class FormBuilder
3
- #def localized_input(name, args = {})
4
- #inputs << super(name, args)
5
- #end
6
- #end
7
- #end