administrate 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of administrate might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4ef06dd53660f75551b268b88b93b4bf4391bc
|
4
|
+
data.tar.gz: c3883681c77f5110ed9f371701b9a119ebd05133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8318610319dd7a4d3761875c72360a36a53b6b4eb4af8a27ced74d8427befa18f7de5e3828c6d933951baee6080187339af98058aa2699d5c946ddf5b41ff546
|
7
|
+
data.tar.gz: e8d1806eab9124b6733bd3ab94614568e177a0fb677c26a96cceedeb5ca3041ffd7b79a3beb8dfc8fc1f16c245c38765e64793faea24ea4bb834eb2b4ff2a7f3
|
data/lib/administrate/version.rb
CHANGED
@@ -24,8 +24,18 @@ module Administrate
|
|
24
24
|
route(dashboard_routes)
|
25
25
|
end
|
26
26
|
|
27
|
+
def run_dashboard_generators
|
28
|
+
singular_dashboard_resources.each do |resource|
|
29
|
+
Rails::Generators.invoke("administrate:dashboard", [resource])
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
27
33
|
private
|
28
34
|
|
35
|
+
def singular_dashboard_resources
|
36
|
+
dashboard_resources.map(&:singularize)
|
37
|
+
end
|
38
|
+
|
29
39
|
def dashboard_resources
|
30
40
|
valid_dashboard_models.map do |model|
|
31
41
|
model.to_s.pluralize.underscore
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grayson Wright
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: normalize-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|