File: default_form_builder_controller.rb

package info (click to toggle)
ruby-view-component 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,832 kB
  • sloc: ruby: 8,385; sh: 166; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class DefaultFormBuilderController < ActionController::Base
  class OtherFormBuilder < ActionView::Helpers::FormBuilder
    def text_field(*)
      "changed by default form builder"
    end
  end

  default_form_builder OtherFormBuilder
end