Sha256: 698f95e50ed33e2737570a65b3eb10b22fc5251187b37e453f144ffd5f3a4c66
Contents?: true
Size: 959 Bytes
Versions: 2
Compression:
Stored size: 959 Bytes
Contents
=begin Camaleon CMS is a content management system Copyright (C) 2015 by Owen Peredo Diaz Email: owenperedo@gmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License (GPLv3) for more details. =end # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
camaleon_cms-2.2.1 | config/initializers/custom_initializers.rb |
camaleon_cms-2.2.0 | config/initializers/custom_initializers.rb |