Sha256: a290686b5a64bcaa279181301b0bdd11b4130e683a0398d79ba735fe0dcf8448

Contents?: true

Size: 258 Bytes

Versions: 11

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true
module SimpleForm
  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

11 entries across 11 versions & 1 rubygems

Version Path
simple_form-5.3.0 lib/simple_form/helpers/disabled.rb
simple_form-5.2.0 lib/simple_form/helpers/disabled.rb
simple_form-5.1.0 lib/simple_form/helpers/disabled.rb
simple_form-5.0.3 lib/simple_form/helpers/disabled.rb
simple_form-5.0.2 lib/simple_form/helpers/disabled.rb
simple_form-5.0.1 lib/simple_form/helpers/disabled.rb
simple_form-5.0.0 lib/simple_form/helpers/disabled.rb
simple_form-4.1.0 lib/simple_form/helpers/disabled.rb
simple_form-4.0.1 lib/simple_form/helpers/disabled.rb
simple_form-4.0.0 lib/simple_form/helpers/disabled.rb
simple_form-3.5.1 lib/simple_form/helpers/disabled.rb