globalize3-inputs-bootstrap 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,35 +1,36 @@
1
1
  module ActiveAdmin
2
2
  module Views
3
- class GlobalizeAttributesTable < ActiveAdmin::Views::AttributesTable
4
- builder_method :globalize_attributes_table_for
3
+ if defined?(::ActiveAdmin::Views::AttributesTable)
4
+ class GlobalizeAttributesTable < ActiveAdmin::Views::AttributesTable
5
+ builder_method :globalize_attributes_table_for
5
6
 
6
- def row(attr, &block)
7
- I18n.available_locales.each_with_index do |locale, index|
8
- @table << tr do
9
- if index == 0
10
- th :rowspan => I18n.available_locales.length do
11
- header_content_for(attr)
7
+ def row(attr, &block)
8
+ I18n.available_locales.each_with_index do |locale, index|
9
+ @table << tr do
10
+ if index == 0
11
+ th :rowspan => I18n.available_locales.length do
12
+ header_content_for(attr)
13
+ end
12
14
  end
13
- end
14
- td do
15
- I18n.with_locale locale do
16
- content_for(block || attr)
15
+ td do
16
+ I18n.with_locale locale do
17
+ content_for(block || attr)
18
+ end
17
19
  end
18
20
  end
19
21
  end
20
22
  end
21
- end
22
23
 
23
- protected
24
+ protected
24
25
 
25
- def default_id_for_prefix
26
- 'attributes_table'
27
- end
26
+ def default_id_for_prefix
27
+ 'attributes_table'
28
+ end
28
29
 
29
- def default_class_name
30
- 'attributes_table'
30
+ def default_class_name
31
+ 'attributes_table'
32
+ end
31
33
  end
32
-
33
34
  end
34
35
  end
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module GlobalizeAAInputs
2
- VERSION = "0.1"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalize3-inputs-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
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-11-02 00:00:00.000000000 Z
12
+ date: 2012-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: globalize3