Sha256: a0db92730ddbd92e28529c1c4f70665c960e53f206a17b83108e8ea3d613f358

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

require 'snaptable/helpers/table_helper'
require 'snaptable/helpers/buttons_helper'

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
snaptable-4.0.2 lib/snaptable/engine.rb
snaptable-4.0.1 lib/snaptable/engine.rb
snaptable-4.0.0 lib/snaptable/engine.rb
snaptable-3.0.0 lib/snaptable/engine.rb