Sha256: d2de3e9cf0504a7e96a78dedd9eed114d5e400c75fd7cfdb8b4e932556ab68c0

Contents?: true

Size: 322 Bytes

Versions: 67

Compression:

Stored size: 322 Bytes

Contents

# load all custom initializers of plugins or themes
PluginRoutes.all_apps.each do |ap|
  if ap["path"].present?
    f = File.join(ap["path"], "config", "initializer.rb")
    eval(File.read(f)) if File.exist?(f)

    f = File.join(ap["path"], "config", "custom_models.rb")
    eval(File.read(f)) if File.exist?(f)
  end
end

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
camaleon_cms-2.6.0.1 config/initializers/custom_initializers.rb
camaleon_cms-2.6.0 config/initializers/custom_initializers.rb
camaleon_cms-2.5.3.1 config/initializers/custom_initializers.rb
camaleon_cms-2.5.3 config/initializers/custom_initializers.rb
camaleon_cms-2.5.2 config/initializers/custom_initializers.rb
camaleon_cms_rails6-2.5.0 config/initializers/custom_initializers.rb
camaleon_cms-2.5.1 config/initializers/custom_initializers.rb
camaleon_cms-2.5.0 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.9 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.8 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.7 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.6 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.5 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.4 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.3 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.2 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.1 config/initializers/custom_initializers.rb
camaleon_cms-2.4.6.0 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.14 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.13 config/initializers/custom_initializers.rb