qm-acts-as-generic-controller 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -9,12 +9,12 @@ begin
|
|
9
9
|
gemspec.email = "marcin@saepia.net"
|
10
10
|
gemspec.homepage = "http://q.saepia.net"
|
11
11
|
gemspec.authors = ["Marcin Lewandowski"]
|
12
|
-
gemspec.version = "0.1.
|
12
|
+
gemspec.version = "0.1.15"
|
13
13
|
gemspec.files = Rake::FileList.new [ "MIT-LICENSE", "Rakefile", "lib/*", "app/views/generic_controller/*" ]
|
14
14
|
gemspec.add_dependency "qui-common-helpers", ">= 0.0.8"
|
15
15
|
gemspec.add_dependency "qui-index-table", ">= 0.0.8"
|
16
16
|
gemspec.add_dependency "qui-tabs", ">= 0.0.3"
|
17
|
-
gemspec.add_dependency "qui-toolbar", ">= 0.0.
|
17
|
+
gemspec.add_dependency "qui-toolbar", ">= 0.0.5"
|
18
18
|
gemspec.add_dependency "rfc822"
|
19
19
|
gemspec.add_dependency "sort_alphabetical"
|
20
20
|
gemspec.add_dependency "calendar_date_select"
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<%- end -%>
|
48
48
|
|
49
49
|
<%- class_name.generic_actions(:action => :index).each do |action| -%>
|
50
|
-
<%= content_tag(:td, send(action[:options][:renderer], { :action => :index, :record => r, :action => action }), :class => "action #{action[:name]}") %>
|
50
|
+
<%= content_tag(:td, send(action[:options][:renderer], { :action => :index, :record => r, :action => :index, :generic_action => action }), :class => "action #{action[:name]}") %>
|
51
51
|
<%- end -%>
|
52
52
|
|
53
53
|
<%- if has_edit -%>
|
@@ -1,17 +1,28 @@
|
|
1
|
+
<%- klass = @controller.class.to_s.demodulize.gsub("Controller", "").singularize.constantize -%>
|
2
|
+
<%- table_name = "#{@controller.class.to_s.demodulize.gsub("Controller", "").tableize.singularize}" -%>
|
3
|
+
<%- record = instance_variable_get("@#{@controller.class.to_s.demodulize.gsub("Controller", "").tableize.singularize}") -%>
|
4
|
+
|
5
|
+
<%- section_prefix = "#{section}." if defined?(section) -%>
|
6
|
+
|
7
|
+
|
1
8
|
<%- toolbar do |t| -%>
|
2
9
|
<%= t.index %>
|
10
|
+
|
3
11
|
<%= t.separator %>
|
4
12
|
<%= t.create %>
|
13
|
+
|
5
14
|
<%= t.separator %>
|
6
15
|
<%= t.edit %>
|
7
16
|
<%= t.delete %>
|
17
|
+
|
18
|
+
<%= t.separator %>
|
19
|
+
<%- klass.generic_actions(:action => :show).each do |action| -%>
|
20
|
+
<%= t.custom(:content => send(action[:options][:renderer], { :action => :show, :record => record, :action => :show, :generic_action => action, :toolbar => true })) %>
|
21
|
+
<%- end -%>
|
22
|
+
|
8
23
|
<%- end -%>
|
9
24
|
|
10
|
-
<%- klass = @controller.class.to_s.demodulize.gsub("Controller", "").singularize.constantize -%>
|
11
|
-
<%- table_name = "#{@controller.class.to_s.demodulize.gsub("Controller", "").tableize.singularize}" -%>
|
12
|
-
<%- record = instance_variable_get("@#{@controller.class.to_s.demodulize.gsub("Controller", "").tableize.singularize}") -%>
|
13
25
|
|
14
|
-
<%- section_prefix = "#{section}." if defined?(section) -%>
|
15
26
|
|
16
27
|
<%- description = capture do -%>
|
17
28
|
<dl>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qm-acts-as-generic-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 15
|
10
|
+
version: 0.1.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcin Lewandowski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -74,12 +74,12 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
77
|
+
hash: 21
|
78
78
|
segments:
|
79
79
|
- 0
|
80
80
|
- 0
|
81
|
-
-
|
82
|
-
version: 0.0.
|
81
|
+
- 5
|
82
|
+
version: 0.0.5
|
83
83
|
type: :runtime
|
84
84
|
version_requirements: *id004
|
85
85
|
- !ruby/object:Gem::Dependency
|