Sha256: 54d48221644755121b9b327764376fddb15281a8ba5fc29e02b117b42859e166

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

module SimpleFormWithClientValidation
  module Helpers
    module Disabled
      private

      def has_disabled?
        options[:disabled] == true
      end

      def disabled_class
        :disabled if has_disabled?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_form_with_client_validation-0.0.2 lib/simple_form_with_client_validation/helpers/disabled.rb
simple_form_with_client_validation-0.0.0 lib/simple_form_with_client_validation/helpers/disabled.rb