Sha256: 97be52b046811082bcfa4d0bcac3d0d1078bb4a8bff4da42412fc639e67d68e3

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

module Transit
  module FormHelper
    unloadable
  
    def form_for(record_name_or_array, *args, &proc)

      options = args.extract_options!
      options.reverse_merge!(:builder => Transit::Builders::FormBuilder)
      options[:html] ||= {}
      options[:html].merge!('data-js-validatable' => true) if options.delete(:validate)

      super(record_name_or_array, *(args << options), &proc)
    
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transit-0.0.2 app/helpers/transit/form_helper.rb