qm-acts-as-generic-controller 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/qm-acts-as-generic-controller-controller.rb +2 -2
- metadata +3 -3
data/Rakefile
CHANGED
|
@@ -9,7 +9,7 @@ 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.10"
|
|
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"
|
|
@@ -124,7 +124,7 @@ module QM
|
|
|
124
124
|
format.html {
|
|
125
125
|
if params[:commit_and_create]
|
|
126
126
|
if params[:association_attribute_name] and params[:association_attribute_value]
|
|
127
|
-
redirect_to polymorphic_url([ "new", section, model.table_name.singularize ], params[:association_attribute_name] => params[:association_attribute_value])
|
|
127
|
+
redirect_to polymorphic_url([ "new", section, model.table_name.singularize ], :association_attribute => params[:association_attribute_name], params[:association_attribute_name] => params[:association_attribute_value])
|
|
128
128
|
else
|
|
129
129
|
redirect_to polymorphic_url([ "new", section, model.table_name.singularize ])
|
|
130
130
|
|
|
@@ -141,7 +141,7 @@ module QM
|
|
|
141
141
|
format.html {
|
|
142
142
|
if params[:commit_and_create]
|
|
143
143
|
if params[:association_attribute_name] and params[:association_attribute_value]
|
|
144
|
-
redirect_to polymorphic_url([ "new", model.table_name.singularize ], params[:association_attribute_name] => params[:association_attribute_value])
|
|
144
|
+
redirect_to polymorphic_url([ "new", model.table_name.singularize ], :association_attribute => params[:association_attribute_name], params[:association_attribute_name] => params[:association_attribute_value])
|
|
145
145
|
else
|
|
146
146
|
redirect_to polymorphic_url([ "new", model.table_name.singularize ])
|
|
147
147
|
end
|
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: 15
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 10
|
|
10
|
+
version: 0.1.10
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Marcin Lewandowski
|