yousty-activeadmin 1.0.13.pre → 1.0.14.pre
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd7ee7bc2361d0b30259dbbf40c128287c4ad0e
|
4
|
+
data.tar.gz: fac11424fd1ad6d708fbfd4b6e1491d0ce627020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0043fa7bdfab92f9e358e46fc20c48631937d3c26db58464c767139d48d777ee8f82a7fd4d21a03bf520bc11d8eb6ff5b790ecb0514c074fcf46bd0f59bdc233
|
7
|
+
data.tar.gz: f0db99331dbb3327320821b765853f1c7e58018efd4c17bd62e4080eeb36f23e12842f79a3a71d02d217af6af43c79418860e883565368a792694f8567c463fd
|
data/lib/active_admin/scope.rb
CHANGED
@@ -29,10 +29,10 @@ module ActiveAdmin
|
|
29
29
|
|
30
30
|
if name.is_a? Proc
|
31
31
|
raise "A string/symbol is required as the second argument if your label is a proc." unless method
|
32
|
-
@id = method.to_s.parameterize(
|
32
|
+
@id = method.to_s.parameterize(separator: '_')
|
33
33
|
else
|
34
34
|
@scope_method ||= name.to_sym
|
35
|
-
@id = name.to_s.parameterize(
|
35
|
+
@id = name.to_s.parameterize(separator: '_')
|
36
36
|
end
|
37
37
|
|
38
38
|
@scope_method = nil if @scope_method == :all
|
data/lib/active_admin/version.rb
CHANGED
@@ -26,7 +26,7 @@ module ActiveAdmin
|
|
26
26
|
if options[:class]
|
27
27
|
classes << options[:class]
|
28
28
|
elsif title.present?
|
29
|
-
classes << "row-#{title.to_s.parameterize('_')}"
|
29
|
+
classes << "row-#{title.to_s.parameterize(separator: '_')}"
|
30
30
|
end
|
31
31
|
options[:class] = classes.join(' ')
|
32
32
|
|
@@ -102,7 +102,7 @@ module ActiveAdmin
|
|
102
102
|
def single_record?
|
103
103
|
@single_record ||= @collection.size == 1
|
104
104
|
end
|
105
|
-
|
105
|
+
|
106
106
|
def is_array?(obj)
|
107
107
|
obj.respond_to?(:each) && obj.respond_to?(:first) && !obj.is_a?(Hash)
|
108
108
|
end
|
@@ -157,7 +157,7 @@ module ActiveAdmin
|
|
157
157
|
|
158
158
|
attr_accessor :title, :data , :html_class
|
159
159
|
|
160
|
-
def initialize(*args, &block)
|
160
|
+
def initialize(*args, &block)
|
161
161
|
@options = args.extract_options!
|
162
162
|
|
163
163
|
@title = args[0]
|
@@ -165,7 +165,7 @@ module ActiveAdmin
|
|
165
165
|
if @options.has_key?(:class)
|
166
166
|
html_classes << @options.delete(:class)
|
167
167
|
elsif @title.present?
|
168
|
-
html_classes << "col-#{@title.to_s.parameterize('_')}"
|
168
|
+
html_classes << "col-#{@title.to_s.parameterize(separator: '_')}"
|
169
169
|
end
|
170
170
|
@html_class = html_classes.join(' ')
|
171
171
|
@data = args[1] || args[0]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yousty-activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Bell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arbre
|