Sha256: 3b0b0dc9af054621b2aac4ddc6bc043a5115a328d74b13ec06bf4fb8f95d8497

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

require "simple_form"

module UEditor::Hooks::SimpleForm
  extend ActiveSupport::Concern

  included do
    ::SimpleForm::FormBuilder.map_type :ueditor, :to => UEditorInput
  end

  class UEditorInput < ::SimpleForm::Inputs::Base
    def input(wrapper_options = nil)
      @builder.uetext_area(attribute_name, input_html_options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ueditor.rails-0.0.5 lib/ueditor/hooks/simple_form.rb
ueditor.rails-0.0.4 lib/ueditor/hooks/simple_form.rb
ueditor.rails-0.0.3 lib/ueditor/hooks/simple_form.rb
ueditor.rails-0.0.2 lib/ueditor/hooks/simple_form.rb