Sha256: 65b5584c805ba7b60b007c435e79beb7b6cd34653b1af1f3bd22644d85cc9476

Contents?: true

Size: 744 Bytes

Versions: 2

Compression:

Stored size: 744 Bytes

Contents

module ActiveScaffoldSortable
  #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_sortable", :after => "initialize_active_scaffold") do
        ActiveSupport.on_load(:action_controller) do
          require "active_scaffold_sortable/config/core.rb"
          require "active_scaffold_sortable/core.rb"
          ActiveScaffold::Config::Core.send :include, ActiveScaffoldSortable::Core
        end

        ActiveSupport.on_load(:action_view) do
          require "active_scaffold_sortable/view_helpers.rb"
          include ActiveScaffoldSortable::ViewHelpers
        end
      end
    end
  #end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_scaffold_sortable_vho-3.1.1 lib/active_scaffold_sortable/engine.rb
active_scaffold_sortable_vho-3.1.0 lib/active_scaffold_sortable/engine.rb