Sha256: b1f37a5235a2003d9634e38e7e8587f7b38f472d38485f0006332606e1396ed5

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

module SortableNestedSet
  class Engine < Rails::Engine
    initializer 'nested_fields.add_middleware' do |app|
      require 'acts_as_sortable_nested_set'
      app.middleware.use ActionDispatch::Static, "#{root}/public"
    end

    config.to_prepare do
      ApplicationController.helper(SortableNestedSetHelper)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sortable_nested_set-0.4.2 lib/sortable_nested_set.rb
sortable_nested_set-0.4.1 lib/sortable_nested_set.rb
sortable_nested_set-0.4.0 lib/sortable_nested_set.rb
sortable_nested_set-0.3.0 lib/sortable_nested_set.rb