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.4.5.12 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.11 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.10 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.9 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.8 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.7 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.5 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.4 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.3 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.2 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5.1 config/initializers/custom_initializers.rb
camaleon_cms-2.4.5 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.7 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.6 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.5 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.4 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.3 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.2 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4.1 config/initializers/custom_initializers.rb
camaleon_cms-2.4.4 config/initializers/custom_initializers.rb