Sha256: 60a1ce6b202dcbf533db2766cd3937f3b272f43844b94f3ea5088b0da983cb80

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

module SimpleForm
  module Components
    module Append
      def append(wrapper_options = nil)
        @append ||= options[:append].to_s.html_safe if options[:append].present?
      end

      def has_append?
        append.present?
      end
    end
  end
end

SimpleForm::Inputs::Base.send(:include, SimpleForm::Components::Append)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pineapples-0.3.345 lib/pineapples/templates/lib/simple_form/components/append.rb
pineapples-0.3.34 lib/pineapples/templates/lib/simple_form/components/append.rb