templus_models 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/crud_controller.rb +2 -1
- data/lib/templus_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6719f4fab497f01fb42e07062edf8458700c10dd
|
4
|
+
data.tar.gz: 0e4350d21ea8baa7ddc4f78413d34c9951286d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11cd71b326d65e518a3f40ede2e7f57f786145f05b3557b03b46ab28aa7bd7f9ac2b2ba30cba0f6ec56df96cbefccded09415e8e78469108a7b90c22f4d233f5
|
7
|
+
data.tar.gz: 95c28d849e57844e92121d73ee9cf3a0e5f6b7314b117341dbebf2417b72d7f9ecf784c4ee9711bf5a7a062e17d3622214d4a799e550618db249159dd82ba78b
|
@@ -9,7 +9,7 @@ class CrudController < ApplicationController
|
|
9
9
|
c_helper = Module.const_get(params[:model].camelize).reflect_on_association(params[:associacao]).class_name
|
10
10
|
@crud_helper = Module.const_get("#{c_helper}Crud") unless params[:render] == "modal" and params[:action] == "new"
|
11
11
|
@url = crud_associacao_models_path(model: params[:model], id: params[:id], associacao: params[:associacao], page: params[:page], q: params[:q])
|
12
|
-
@clean_url =
|
12
|
+
@clean_url = crud_associacao_models_path(model: params[:model], id: params[:id], associacao: params[:associacao])
|
13
13
|
@model_permission = c_helper.constantize
|
14
14
|
@id = params[:associacao_id] if params[:associacao_id]
|
15
15
|
else
|
@@ -54,6 +54,7 @@ class CrudController < ApplicationController
|
|
54
54
|
@model = params[:attribute].to_s.camelcase.constantize
|
55
55
|
end
|
56
56
|
@url = crud_models_path(model: @model.name.underscore)
|
57
|
+
@clean_url = @url
|
57
58
|
@model_permission = @model
|
58
59
|
@crud_helper = Module.const_get("#{@model}Crud".camelize)
|
59
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: templus_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Sol
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|