Sha256: 9ce22bcce5f1c60eff6b773865b70cc9ef684ba10b7dc75708843ff1481c7efa
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
module CustomReport class Engine < Rails::Engine isolate_namespace CustomReport initializer "custom_report.load_app_instance_data" do |app| CustomReport.setup do |config| config.app_root = app.root end end initializer "custom_report.load_static_assets" do |app| app.middleware.use ::ActionDispatch::Static, "#{root}/public" end module ApplicationHelper def method_missing(method, *args, &block) if (method.to_s.end_with?('_path') || method.to_s.end_with?('_url')) && main_app.respond_to?(method) main_app.send(method, *args) else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
custom_report-0.0.2 | lib/custom_report/engine.rb |
custom_report-0.0.1 | lib/custom_report/engine.rb |