Sha256: e5fc2411b731c6ecddc8cb46db2727f8d8719426146f95e1bb53e37660c94cf0

Contents?: true

Size: 353 Bytes

Versions: 6

Compression:

Stored size: 353 Bytes

Contents

require 'tabulous'
require 'rails'

module Tabulous
  class Railtie < Rails::Railtie
    initializer 'tabulous.helper' do |app|
      ActionView::Base.send :include, Tabulous::ViewHelpers
    end
    config.to_prepare do
      filename = File.join(Rails.root.to_s, 'app/tabs/tabulous.rb')
      load filename if File.exists?(filename)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tabulous-2.1.4 lib/tabulous/railtie.rb
tabulous-2.1.3 lib/tabulous/railtie.rb
tabulous-2.1.2 lib/tabulous/railtie.rb
tabulous-2.1.1 lib/tabulous/railtie.rb
tabulous-2.1.0 lib/tabulous/railtie.rb
tabulous-2.0.0 lib/tabulous/railtie.rb