Sha256: 546c844be9f670b6e0ceaaf1a111b1f32c72b71bd16bd6c1ffc3d0ef35a26567
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true # generado con pg_rails <% if false && namespaced? -%> require_dependency "<%= namespaced_path %>/application_controller" <% end -%> <% module_namespacing do -%> <% module_namespacing_2 do -%> class <%= controller_class_name.split('::').last %>Controller < <%= parent_controller %> include PgEngine::Resource before_action { @clase_modelo = <%= class_name.split('::').last %> } before_action(only: :index) { authorize <%= class_name.split('::').last %> } before_action :set_instancia_modelo, only: %i[new create show edit update destroy] add_breadcrumb <%= class_name.split('::').last %>.nombre_plural, :<%= plural_route_name %>_path private def atributos_permitidos %i[<%= attributes_names.join(' ') %>] end def atributos_para_buscar # FIXME: append _cont %i[<%= atributos_a_filtrar.map(&:name).join(' ') %>] end def atributos_para_listar %i[<%= atributos_a_filtrar.map(&:name).join(' ') %>] end def atributos_para_mostrar %i[<%= atributos_a_filtrar.map(&:name).join(' ') %>] end end <% end -%> <% end -%>
Version data entries
5 entries across 5 versions & 1 rubygems