Sha256: f7af0ecdf2aeb73331e78d3eba75344cfb2ca2eae9f3006e5c432b0c8ec5fd4d

Contents?: true

Size: 1 KB

Versions: 7

Compression:

Stored size: 1 KB

Contents

module ActiveScaffoldBatch
  #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_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
            end
            include ActiveScaffold::Helpers::BatchCreateColumnHelpers
          rescue
            raise $! unless Rails.env == 'production'
          end
        end
      end
    end
  #end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_scaffold_batch_vho-3.1.7 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.6 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.5 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.4 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.3 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.2 lib/active_scaffold_batch/engine.rb
active_scaffold_batch_vho-3.1.1 lib/active_scaffold_batch/engine.rb