Sha256: 72396b754f8db9b8343f4b04aec5806d015a3b81046b35602f828c4d1ad6fae8

Contents?: true

Size: 366 Bytes

Versions: 12

Compression:

Stored size: 366 Bytes

Contents

# encoding: utf-8

require 'formtastic'
require 'formtastic/layout_helper'
require 'rails'

module Formtastic
  class Railtie < Rails::Railtie
    initializer 'formtastic.initialize', :after => :after_initialize do
      ActionView::Base.send :include, Formtastic::SemanticFormHelper
      ActionView::Base.send(:include, Formtastic::LayoutHelper)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
formtastic-1.2.5 lib/formtastic/railtie.rb
formtastic-1.2.4 lib/formtastic/railtie.rb
formtastic-1.2.4.beta2 lib/formtastic/railtie.rb
formtastic-1.2.3 lib/formtastic/railtie.rb
formtastic-1.2.3.beta lib/formtastic/railtie.rb
formtastic-1.2.2 lib/formtastic/railtie.rb
formtastic-1.2.1 lib/formtastic/railtie.rb
formtastic-1.2.1.beta3 lib/formtastic/railtie.rb
formtastic-1.2.1.beta lib/formtastic/railtie.rb
formtastic-1.2.0 lib/formtastic/railtie.rb
formtastic-1.2.0.beta2 lib/formtastic/railtie.rb
formtastic-1.2.0.beta lib/formtastic/railtie.rb