Sha256: bc5a27de78e0a35b5830e9970e071f76fbddc409dc63d29014e406eb82cc0ed4

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

# frozen-string-literal: true
module EncryptedFormFields
  module Helpers
    module FormBuilder
      def encrypted_field(method, options = {})
        @template.encrypted_field(@object_name, method, objectify_options(options))
      end

      private

      def objectify_options(options)
        @default_options.merge(options.merge(object: @object))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
encrypted_form_fields-1.0.0 lib/encrypted_form_fields/helpers/form_builder.rb
encrypted_form_fields-0.2.4 lib/encrypted_form_fields/helpers/form_builder.rb
encrypted_form_fields-0.2.3 lib/encrypted_form_fields/helpers/form_builder.rb