Sha256: 0a32ff7ee344864ba0f1b1e284ef1264c4002f9a5592f4d0c598dd0e299f5953

Contents?: true

Size: 882 Bytes

Versions: 14

Compression:

Stored size: 882 Bytes

Contents

module ActiveScaffoldBatch
  class Engine < ::Rails::Engine
    initializer("initialize_active_scaffold_batch", :after => "initialize_active_scaffold") do
      ActiveSupport.on_load(:action_controller) do
        require "active_scaffold_batch/config/core.rb"
      end

      ActiveSupport.on_load(:action_view) do
        begin
          include ActiveScaffold::Helpers::UpdateColumnHelpers
          if ActiveScaffold.js_framework == :jquery
            include ActiveScaffold::Helpers::DatepickerUpdateColumnHelpers
          elsif ActiveScaffold.js_framework == :prototype
            include ActiveScaffold::Helpers::CalendarDateSelectUpdateColumnHelpers if defined? CalendarDateSelect
          end
          include ActiveScaffold::Helpers::BatchCreateColumnHelpers
        rescue
          raise $! unless Rails.env == 'production'
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
active_scaffold_batch-3.4.5 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.4.4 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.4.3 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.4.2 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.4.1 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.4.0 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.3.4 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.3.3 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.3.2 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.3.1 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.3.0 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.2.2 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.2.1 lib/active_scaffold_batch/engine.rb
active_scaffold_batch-3.2.0 lib/active_scaffold_batch/engine.rb