Sha256: cfa504f89fe70bcb3b6912ef6d9a0d05ac12b7af4fc6c3c16130ada8167b98a7

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

require 'snaptable/helpers/table'
require 'snaptable/helpers/buttons_helper'

module Snaptable
  class Engine < ::Rails::Engine
    require 'will_paginate'
    require 'jquery-rails'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snaptable-0.9.1 lib/snaptable/engine.rb