Sha256: bdce4b2cc607bfaa7771e1b032c71fa20bf70607e56471e164e14b4fdf54fd0f

Contents?: true

Size: 726 Bytes

Versions: 8

Compression:

Stored size: 726 Bytes

Contents

Rails.application.configure do
    # I18n
    config.i18n.available_locales = %w(it en)
    config.i18n.default_locale = :it
    config.time_zone = 'Rome'
    # Active Storage
    config.active_storage.configure(
        :Disk,
        root: Rails.root.join("storage")
    )
    
    # ActionMailer
    config.action_mailer.delivery_method = :smtp
    # AFTER INITIALIZE Good place to load things that must have a bit of initialization 
    # setup on order to work (and not be overrided).    
    config.after_initialize do
        # include the extensions
        ActiveRecord::Base.send(:include, ActiveRecordExtensions)
        Integer.send(:include, FixnumConcern)
        String.send(:include, StringConcern)
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thecore_backend_commons-3.0.3 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-3.0.0 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.4.2 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.4.1 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.4.0 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.3.10 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.3.9 config/initializers/thecore_backend_commons_app_configs.rb
thecore_backend_commons-2.3.8 config/initializers/thecore_backend_commons_app_configs.rb