Sha256: 85ad904d5ebe7f959d09826f5afebd2bdade0b69f662173d29b1839f1ecbca65

Contents?: true

Size: 792 Bytes

Versions: 28

Compression:

Stored size: 792 Bytes

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

  self.clase_modelo = <%= class_name.split('::').last %>

  private

  def atributos_permitidos
    %i[<%= attributes_names.join(' ') %>]
  end

  def atributos_para_buscar
    %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

28 entries across 28 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.27 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.26 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.25 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.24 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.24.pre.5 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.24.pre.4 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.24.pre.3 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.23 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.22 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.22.pre.3 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.22.pre.2 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.22.pre.1 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.11 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.10 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.9 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.8 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.7 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb
pg_rails-7.6.21.pre.6 pg_scaffold/lib/generators/pg_scaffold/templates/controller.rb