Sha256: 762adb32f042b15861b02c4593a977e18ca329a0cdc841e1b605008409415f75

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require 'sortable_nested_set'
require 'rails'

module SortableNestedSet
  class Engine < Rails::Engine
    initializer 'sortable_nested_set.add_middleware' do |app|
      app.middleware.use ActionDispatch::Static, "#{root}/public"
    end
    config.to_prepare do
      ApplicationController.helper(SortableNestedSetHelper)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sortable_nested_set-0.1.26 lib/sortable_nested_set/engine.rb
sortable_nested_set-0.1.25 lib/sortable_nested_set/engine.rb
sortable_nested_set-0.1.24 lib/sortable_nested_set/engine.rb