Sha256: f43f415cba392929de71473039d95cdbdafafe96120bb487768e5d4e09b72459

Contents?: true

Size: 258 Bytes

Versions: 11

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true
module SimpleForm
  module Helpers
    module Readonly
      private

      def readonly_class
        :readonly if has_readonly?
      end

      def has_readonly?
        options[:readonly] == true
      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/readonly.rb
simple_form-5.2.0 lib/simple_form/helpers/readonly.rb
simple_form-5.1.0 lib/simple_form/helpers/readonly.rb
simple_form-5.0.3 lib/simple_form/helpers/readonly.rb
simple_form-5.0.2 lib/simple_form/helpers/readonly.rb
simple_form-5.0.1 lib/simple_form/helpers/readonly.rb
simple_form-5.0.0 lib/simple_form/helpers/readonly.rb
simple_form-4.1.0 lib/simple_form/helpers/readonly.rb
simple_form-4.0.1 lib/simple_form/helpers/readonly.rb
simple_form-4.0.0 lib/simple_form/helpers/readonly.rb
simple_form-3.5.1 lib/simple_form/helpers/readonly.rb