Sha256: 357ceea2488e16348589078a1a0bb9bbcbe790586be15de7444a2b6c0b71c793

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

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-0.2.1 lib/encrypted_form_fields/helpers/form_builder.rb
encrypted_form_fields-0.2.0 lib/encrypted_form_fields/helpers/form_builder.rb
encrypted_form_fields-0.1.0 lib/encrypted_form_fields/helpers/form_builder.rb