Sha256: e9226d0b0bac5fbf4e3ace18b3e1730cd2cd7c1e15fcfffca46c4f92d7bc9373

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

require 'flutie/body_class'
require 'flutie/body_class_helper'
require 'flutie/page_title'
require 'flutie/page_title_presenter'
require 'flutie/page_title_helper'

# :nodoc:
module Flutie
  # :nodoc:
  class Railtie < Rails::Railtie
    initializer 'page_title.helper' do |_app|
      ActionView::Base.send :include, PageTitleHelper
    end

    initializer 'body_class.helper' do |_app|
      ActionView::Base.send :include, BodyClassHelper
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flutie-2.2.0 lib/flutie/railtie.rb
flutie-2.1.0 lib/flutie/railtie.rb