Sha256: b74ef307c68ae7e055afc1f23402f979cbc8566d24a55c096ac300ffe26ec9a7

Contents?: true

Size: 282 Bytes

Versions: 15

Compression:

Stored size: 282 Bytes

Contents

module SimpleForm
  module Components
    module LabelInput
      extend ActiveSupport::Concern

      included do
        include SimpleForm::Components::Labels
      end

      def label_input
        options[:label] == false ? input : (label + input)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
simple_form-3.0.4 lib/simple_form/components/label_input.rb
simple_form-2.1.3 lib/simple_form/components/label_input.rb
simple_form-2.1.2 lib/simple_form/components/label_input.rb
simple_form-3.0.3 lib/simple_form/components/label_input.rb
simple_form-3.0.2 lib/simple_form/components/label_input.rb
simple_form-3.0.1 lib/simple_form/components/label_input.rb
simple_form-2.1.1 lib/simple_form/components/label_input.rb
simple_form-3.0.0 lib/simple_form/components/label_input.rb
simple_form_awesome-2.5.0 lib/simple_form/components/label_input.rb
simple_form_awesome-2.4.0 lib/simple_form/components/label_input.rb
simple_form_awesome-2.3.0 lib/simple_form/components/label_input.rb
simple_form_awesome-2.2.0 lib/simple_form/components/label_input.rb
simple_form-3.0.0.rc lib/simple_form/components/label_input.rb
simple_form-2.1.0 lib/simple_form/components/label_input.rb
simple_form-3.0.0.beta1 lib/simple_form/components/label_input.rb