Sha256: b9ff51814233746ab9d7226b6536026b70d2cfaf5f0e39b3c961c4039879b027

Contents?: true

Size: 265 Bytes

Versions: 7

Compression:

Stored size: 265 Bytes

Contents

module SimpleForm
  module Components
    module LabelInput
      def self.included(base)
        base.send :include, SimpleForm::Components::Labels
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_form-1.4.2 lib/simple_form/components/label_input.rb
simple_form-1.4.1 lib/simple_form/components/label_input.rb
simple_form-1.4.0 lib/simple_form/components/label_input.rb
simple_form-1.3.1 lib/simple_form/components/label_input.rb
simple_form-1.3.0 lib/simple_form/components/label_input.rb
simple_form-1.2.2 lib/simple_form/components/label_input.rb
simple_form-1.2.1 lib/simple_form/components/label_input.rb