Sha256: 9c901ae8e0103e658da4fdfd82c035d348e7bf502440998b695ee6c02722a1b1

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# Make sure that ActiveScaffold has already been included
ActiveScaffold rescue throw "should have included ActiveScaffold plug in first.  Please make sure that this overwrite plugging comes alphabetically after the ActiveScaffold plug in"

# Load our overrides
require "#{File.dirname(__FILE__)}/active_scaffold_batch/config/core.rb"
require "#{File.dirname(__FILE__)}/active_scaffold/config/batch_update.rb"
require "#{File.dirname(__FILE__)}/active_scaffold/actions/batch_update.rb"
require "#{File.dirname(__FILE__)}/active_scaffold/helpers/view_helpers_override.rb"

module ActiveScaffoldBatch
  def self.root
    File.dirname(__FILE__) + "/.."
  end
end


##
## Run the install assets script, too, just to make sure
## But at least rescue the action in production
##
Rails::Application.initializer("active_scaffold_batch.install_assets") do
  begin
    ActiveScaffoldAssets.copy_to_public(ActiveScaffoldBatch.root)
  rescue
    raise $! unless Rails.env == 'production'
  end
end unless defined?(ACTIVE_SCAFFOLD_BATCH_INSTALLED) && ACTIVE_SCAFFOLD_BATCH_INSTALLED == :plugin

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_scaffold_batch_vho-3.0.0 lib/active_scaffold_batch.rb