Sha256: 31d969a3800cbeb97b7fd0e612c38b435d11d2aef11bd0e793154dab56297714

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

require 'snaptable/helpers/table'

module Snaptable
  class Engine < ::Rails::Engine
    require 'will_paginate'

    initializer 'Snaptable.tables' do
      ActionController::Base.send :include, Helpers
    end

    initializer 'Snaptable.buttons_helper' do
      ActionView::Base.send(:include, ButtonsHelper)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
snaptable-0.8.2 lib/snaptable/engine.rb
snaptable-0.8.1 lib/snaptable/engine.rb
snaptable-0.8.0 lib/snaptable/engine.rb