Sha256: ccccca0bc1cc4362712684c3296f035a6e39f383888a73b348b25004f98ff11a

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 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])
        Netzke::Core.with_icons = File.exists?("#{::Rails.root}/public#{Netzke::Core.icons_uri}") if Netzke::Core.with_icons.nil?
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
netzke-core-0.9.0 lib/netzke/core/railz/engine.rb
netzke-core-0.9.0.rc1 lib/netzke/core/railz/engine.rb
netzke-core-0.8.4 lib/netzke/core/railz/engine.rb
netzke-core-0.8.3 lib/netzke/core/railz/engine.rb
netzke-core-0.8.2 lib/netzke/core/railz/engine.rb
netzke-core-0.8.1 lib/netzke/core/railz/engine.rb
netzke-core-0.8.0 lib/netzke/core/railz/engine.rb