Sha256: 1faafdb537f93f8c204f36230cb54eb1ec3d1d0b418d07c24a500ae0f5bd4d6f

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

module SimpleFormWithClientValidation
  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

2 entries across 2 versions & 1 rubygems

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