Sha256: e74af3033ad28b7335476cf1ce37510ac2452d4ae6574759defbb36ad60b398e
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
module Forcast module Application module Permitirtodo def params_permitidos_enviar return params_permitidos_enviar = controller_name.classify.constantize.column_names + assoc end def params_permitidos_update return params_permitidos_update = controller_name.classify.constantize.column_names + assoc end def params_permitidos_buscar return params_permitidos_buscar = controller_name.classify.constantize.column_names + assoc end def assoc nn = [] controller_name.classify.constantize.reflect_on_all_associations(:belongs_to).each do |x| nn = nn.push(x.name.to_s + '_id') end return nn end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forcast-0.0.110 | lib/forcast/controllers/application/permitirtodo.rb |