admin_it 1.3.7 → 1.3.8

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
2
  SHA1:
3
- metadata.gz: f6e62d24692f8e6f057ce4758407d722aaa13a7f
4
- data.tar.gz: d5fd5c881cf347f423e68aee4d908325c1ec02fe
3
+ metadata.gz: 623ae63046a37163f1663f88926860cf3c011c46
4
+ data.tar.gz: 757b71d2ee0ce39300f2b6dfe49f6472b9602903
5
5
  SHA512:
6
- metadata.gz: 3855237088fa0735f47cf57b9c2f1bd09cd8e13135bdb59140c4e4cd7226aca521193f6199f6bfccb8553e69513c0483a2c6dc7ee72bec3a2721a1a38600fa58
7
- data.tar.gz: a776855dcf2bbc5fe313caa05dae4a0c885460b791367e67c8d7ec72631341553867d66ed503e454788f4c22d107ef67fafb671b8d33999cbc56a6498042edf3
6
+ metadata.gz: dcc2b523e53513a1282f765a78716838f90edb0449c70e6214aceb0ef1299f93ece467fb405367a4fa59b024263e2c293c980251bbccc30790cb01eb2868e9d9
7
+ data.tar.gz: c900a6d322776c14e67ccf7c2142d646ff1d0053305a1def4e86f4a08a433016ae7f51e7bb775b575690bce63ce1827b23f5255066f99cd9e5887f981a0cd274
@@ -0,0 +1,7 @@
1
+ - for_context ||= context
2
+ - name ||= "#{for_context.resource.name}[#{field.name}]"
3
+ - id ||= "#{for_context.resource.name}_#{field.name}"
4
+ - value ||= field.read(for_context.entity)
5
+ - opts = { name: name, id: id, rows: 3 }
6
+ textarea.form-control *opts
7
+ == value
@@ -20,7 +20,7 @@ module AdminIt
20
20
 
21
21
  TYPES = %i(unknown integer float string date datetime time relation enum
22
22
  array hash range regexp symbol binary image geo_point boolean)
23
- EDITORS = %i(text combo radio image hidden geo_picker boolean)
23
+ EDITORS = %i(text combo radio image hidden geo_picker boolean textarea)
24
24
 
25
25
  define_callbacks :initialize
26
26
 
@@ -1,5 +1,5 @@
1
1
  #
2
2
  module AdminIt
3
3
  # Current gem version
4
- VERSION = '1.3.7'
4
+ VERSION = '1.3.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Ovchinnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -275,6 +275,7 @@ files:
275
275
  - app/views/admin_it/editors/_hidden.html.slim
276
276
  - app/views/admin_it/editors/_image.html.slim
277
277
  - app/views/admin_it/editors/_text.html.slim
278
+ - app/views/admin_it/editors/_textarea.html.slim
278
279
  - app/views/admin_it/new.html.slim
279
280
  - app/views/admin_it/shared/_child.html.slim
280
281
  - app/views/admin_it/shared/_fields.html.slim