simple_admin 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/simple_admin.rb
CHANGED
@@ -78,9 +78,11 @@ module SimpleAdmin
|
|
78
78
|
#
|
79
79
|
# Various configuration options are available within the block
|
80
80
|
def register(resource, options={}, &block)
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
if defined?(@@registered)
|
82
|
+
interface = SimpleAdmin::Interface.new(resource, options, &block)
|
83
|
+
self.registered << interface
|
84
|
+
interface
|
85
|
+
end
|
84
86
|
end
|
85
87
|
end
|
86
88
|
|
data/lib/simple_admin/section.rb
CHANGED
data/lib/simple_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Rafter
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|