Sha256: d7d66868e6b363cfafff6896043c7d9988b258d8290fe2c0e44af02a2271df0a

Contents?: true

Size: 934 Bytes

Versions: 13

Compression:

Stored size: 934 Bytes

Contents

# frozen_string_literal: true

# TODO: mover a pg_scaffold

module PgEngine
  class Configuracion
    attr_accessor :sistema_iconos, :clase_botones_chicos,
                  :boton_destroy, :boton_edit, :boton_show,
                  :boton_light, :icono_destroy, :icono_edit,
                  :icono_show, :boton_export, :bootstrap_version,
                  :users_controller

    def initialize
      @sistema_iconos = 'bi'
      @clase_botones_chicos = 'btn-sm'
      @boton_destroy = 'light'
      @boton_export = 'warning'
      @boton_edit = 'light'
      @boton_show = 'light'
      @boton_light = 'light'
      @icono_destroy = 'trash-fill'
      @icono_edit = 'pencil'
      @icono_show = 'eye-fill'
      @bootstrap_version = 5

      if defined? UsersController
        @users_controller = UsersController
      elsif defined? FrontendController
        @users_controller = FrontendController
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pg_rails-7.4.3 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.4.2 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.4.1 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.4.0 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.5 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.4 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.3 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.2 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.1 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.3.0 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.2.3 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.2.2 pg_engine/lib/pg_engine/configuracion.rb
pg_rails-7.2.1 pg_engine/lib/pg_engine/configuracion.rb