templus_models 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ae4ac517bb260f07241bc4dcda339dee552a95d
4
- data.tar.gz: efac55165abfa827d5579bf7cd2e84375127ff1f
3
+ metadata.gz: 21ed0dab6a17c940740555ee5b74e3f9a8377b5d
4
+ data.tar.gz: 808ac23488ba50e6ca6edd49c0c9b0a749b0e895
5
5
  SHA512:
6
- metadata.gz: 5f0b6acb81a5f1361d9ce228fabf6f3708cebdfb24ae8e042da7e67418a534c074f23d89de40d6d165ef04fb4c6c9a41af5b06d70485c927254189aa0d6f3dd3
7
- data.tar.gz: 71a4c2b6cad80f5ca692a46f392816d1409263ca858775a758469cd6ed1d34a91fe93bc0fdcee722946afa55d0e8db704935b44c29dd63b68e2d085833e91076
6
+ metadata.gz: b6b6fa6c45eb9e2278c098b38e6f440f5d1fcd2dc677580fc62be80459fcbe175c8d095a43772f8dd9983396370d19e1ee2ccab25d592c934e6eac1de7d72b4a
7
+ data.tar.gz: 44bfda80b668657dbf2c8075a162c9ce08d08f2bedb6d3b661a6b46faf96273e47aa439217ac9901c4b18df0699ae2db3d6c0da04770b42571e4e8c0030e85d6
@@ -147,7 +147,7 @@ class CrudController < ApplicationController
147
147
  chave = "#{key}_attributes"
148
148
  group = {chave => [:id, :_destroy]}
149
149
  groups.each do |field|
150
- modelo = key.to_s.camelcase.constantize
150
+ modelo = key.to_s.singularize.camelcase.constantize
151
151
  if modelo.reflect_on_association(field[:attribute])
152
152
  if modelo.reflect_on_association(field[:attribute]).macro == :belongs_to
153
153
  group[chave] << "#{field[:attribute]}_id".to_sym
@@ -1,3 +1,3 @@
1
1
  module TemplusModels
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  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.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Sol
@@ -118,7 +118,6 @@ extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
120
  - MIT-LICENSE
121
- - README.rdoc
122
121
  - Rakefile
123
122
  - app/assets/javascripts/raro_crud.js
124
123
  - app/assets/javascripts/templus_models.js.coffee
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = TemplusModels
2
-
3
- O Templus Models agiliza a geração de gruds em projetos Rails