Sha256: c06d9b7e66a5d24dc8fb9484238f2858e3d681d314ddc81ed0c4959ed8908764

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

unless defined?(Rich::I18n::CONTROLLER_HOOKED)
  
  ActionController::Dispatcher.to_prepare :rich_i18n_formtastic do
    if defined? Formtastic::SemanticFormBuilder
      Formtastic::SemanticFormBuilder.send :include, Rich::I18n::Formtastic unless Formtastic::SemanticFormBuilder.included_modules.include? Rich::I18n::Formtastic
    end
  end
  
  Rich::I18n::CONTROLLER_HOOKED = true
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rich_i18n-1.2.3 lib/rich/i18n/actionpack/action_controller/dispatcher.rb
rich_i18n-1.2.2 lib/rich/i18n/actionpack/action_controller/dispatcher.rb
rich_i18n-1.2.1 lib/rich/i18n/actionpack/action_controller/dispatcher.rb
rich_i18n-1.2.0 lib/rich/i18n/actionpack/action_controller/dispatcher.rb