Sha256: 9b4a8f8abe6792aea2a76d4740b92bd4f7dffef4b8886a12085dbb9a39c03495
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'rails' require 'rails/neoon' module Rails module Neoon class Railtie < ::Rails::Railtie rake_tasks do load "neoon/railties/database.rake" end initializer "neoon.neo_index_update" do config.after_initialize do ::Neoon.config.models.each(&:neo_index_update) end end initializer "neoon.preload_models" do |app| config.to_prepare do Rails::Neoon.preload_models(app) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neoon-0.0.3 | lib/neoon/railtie.rb |