easy_admin_ui 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +5 -1
- data/VERSION +1 -1
- data/easy_admin_ui.gemspec +2 -2
- data/lib/easy_admin_ui/core_ext.rb +3 -0
- metadata +4 -4
data/README
CHANGED
@@ -40,7 +40,11 @@ class Admin::UsersController < ActionController::Base
|
|
40
40
|
:page_title => 'Users',
|
41
41
|
:columns => ['Login', ['Email', 'my_nowrap_class'], 'Name', 'Created'],
|
42
42
|
:show_actions => true,
|
43
|
-
:skip_new => true
|
43
|
+
:skip_new => true,
|
44
|
+
:include => '
|
45
|
+
after :create do
|
46
|
+
# Stuff you want to do after create.
|
47
|
+
end'
|
44
48
|
end
|
45
49
|
|
46
50
|
The model is infered by the make_resourceful plugin which is why we don't need
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/easy_admin_ui.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{easy_admin_ui}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Moen Wulffeld"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-31}
|
13
13
|
s.description = %q{Very simple DRY admin UI.}
|
14
14
|
s.email = %q{martin@wulffeld.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -9,6 +9,7 @@ module EasyAdminUi
|
|
9
9
|
|
10
10
|
def easy_admin(options = {})
|
11
11
|
@options = options
|
12
|
+
@options[:include] ||= []
|
12
13
|
|
13
14
|
make_resourceful do
|
14
15
|
actions :all
|
@@ -62,6 +63,8 @@ module EasyAdminUi
|
|
62
63
|
end
|
63
64
|
end
|
64
65
|
end
|
66
|
+
|
67
|
+
eval(options[:include])
|
65
68
|
end
|
66
69
|
|
67
70
|
class_eval do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_admin_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Martin Moen Wulffeld
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-31 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|