Sha256: 103c7ce35c6fd93a5adf64223d705efc4d757d36b666606a3f05e7436e29a456
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
require 'simple_admin' require 'rails' module SimpleAdmin class Engine < Rails::Engine isolate_namespace SimpleAdmin initializer 'simple_admin' do |app| if Rails.env == "development" simple_admin_reloader = ActiveSupport::FileUpdateChecker.new(Dir["app/admin/**/*"], true) do SimpleAdmin.unregister Rails.application.reload_routes! end ActionDispatch::Callbacks.to_prepare do simple_admin_reloader.execute_if_updated end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems