Sha256: a265ed50c98b1bd686085c0038aa49ccb617d3eb405099b61deb0cf6a22adb7d
Contents?: true
Size: 659 Bytes
Versions: 18
Compression:
Stored size: 659 Bytes
Contents
module Netzke module Railz class Engine < Rails::Engine initializer "netzke.core" do |app| app.config.eager_load_paths -= ["#{app.config.root}/app/components"] app.config.autoload_paths += ["#{app.config.root}/app/components"] end # before loading initializers config.before_initialize do |app| Netzke::Core.ext_path = Rails.root.join('public', Netzke::Core.ext_uri[1..-1]) end config.after_initialize do |app| if Netzke::Core.with_icons.nil? Netzke::Core.with_icons = File.exists?("#{::Rails.root}/public#{Netzke::Core.icons_uri}") end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems