Sha256: a3eee1181ebe7dab9ec935ccd78ddc80159614d4422d10f81c4656e9a4b42664

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

module ActiveScaffoldExport
  #do not use module Rails... cause Rails.logger will fail
  # not sure if it is a must though...
  #module Rails
    class Engine < ::Rails::Engine
      initializer("initialize_active_scaffold_export", :after => "initialize_active_scaffold") do
        ActiveSupport.on_load(:action_controller) do
          require "active_scaffold_export/config/core.rb"
        end
        ActiveSupport.on_load(:action_view) do
          require "active_scaffold/helpers/export_helpers.rb"
          include ActiveScaffold::Helpers::ExportHelpers
        end
      end
    end
  #end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_scaffold_export_vho-3.1.4 lib/active_scaffold_export/engine.rb
active_scaffold_export_vho-3.1.3 lib/active_scaffold_export/engine.rb