Sha256: ba4f959389db52a09092c559ee0a26fec3bc9723e5d4985ff3f7991102a57cf7
Contents?: true
Size: 988 Bytes
Versions: 1
Compression:
Stored size: 988 Bytes
Contents
module AutomateEm class Engine < ::Rails::Engine engine_name :automate rake_tasks do load "tasks/automate-em_tasks.rake" end # # Define the application configuration # config.before_initialize do |app| # Rails.configuration app.config.automate = ActiveSupport::OrderedOptions.new app.config.automate.module_paths = [] app.config.automate.log_level = Logger::INFO app.config.automate.encrypt_key = "Lri2B0yvEVag+raqX9uqMFu9LmGoGwbaO8fzNidf" app.config.automate.datagram_port = 0 # ephemeral port (random selection) end # # Discover the possible module location paths after initialisation is complete # config.after_initialize do |app| app.config.assets.paths.each do |path| Pathname.new(path).ascend do |v| if ['app', 'vendor'].include?(v.basename.to_s) app.config.automate.module_paths << "#{v.to_s}/modules" break end end end app.config.automate.module_paths.uniq! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
automate-em-0.0.4 | lib/automate-em/engine.rb |