Sha256: a4daa81e62741e7ba687dda28a3dc79c787daa0fa5cd2ecd11e918dc55262d46
Contents?: true
Size: 1.32 KB
Versions: 7
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true require 'cancancan' require 'ar_lazy_preload' require 'js_regex' require 'fugit' require 'csv' require 'active_record/filter' module Motor PATH = Pathname.new(__dir__) module_function def reload! Kernel.silence_warnings do Dir[PATH.join('./motor/**/*.rb')].each do |f| next if f.ends_with?('alerts/scheduler.rb') next if f.ends_with?('alerts/scheduled_alerts_cache.rb') next if f.ends_with?('ui_configs.rb') load f end end true end def server? defined?(::Rails::Server) || defined?(::Thin::Server) || defined?(::PhusionPassenger) || (defined?(::Puma) && File.basename($PROGRAM_NAME) == 'puma') || defined?(::Unicorn::HttpServer) || defined?(::Mongrel::HttpServer) || defined?(::WEBrick::VERSION) || defined?(JRuby::Rack::VERSION) || defined?(::Trinidad::Server) end def development? ENV['MOTOR_DEVELOPMENT'].present? end end require 'motor/version' require 'motor/admin' require 'motor/api' require 'motor/assets' require 'motor/build_schema' require 'motor/api_query' require 'motor/tags' require 'motor/ui_configs' require 'motor/queries' require 'motor/dashboards' require 'motor/forms' require 'motor/alerts' require 'motor/hash_serializer' require 'motor/active_record_utils'
Version data entries
7 entries across 7 versions & 1 rubygems