Sha256: c5674b7321012ba2e2c44a0a78b292e4e98d4e26f32fac5764c592262dac9829

Contents?: true

Size: 398 Bytes

Versions: 10

Compression:

Stored size: 398 Bytes

Contents

module Formtastic

  # Uses the {Formtastic::NamespacedClassFinder} to look up input class names.
  #
  # See {Formtastic::FormBuilder#namespaced_input_class} for details.
  #
  class InputClassFinder < NamespacedClassFinder

    # @param builder [FormBuilder]
    def initialize(builder)
      super builder.input_namespaces
    end

    def class_name(as)
      "#{super}Input"
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/formtastic/input_class_finder.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/formtastic/input_class_finder.rb
formtastic-4.0.0 lib/formtastic/input_class_finder.rb
formtastic-4.0.0.rc1 lib/formtastic/input_class_finder.rb
formtastic-3.1.5 lib/formtastic/input_class_finder.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/formtastic-3.1.4/lib/formtastic/input_class_finder.rb
formtastic-3.1.4 lib/formtastic/input_class_finder.rb
formtastic-3.1.3 lib/formtastic/input_class_finder.rb
formtastic-3.1.2 lib/formtastic/input_class_finder.rb
formtastic-3.1.1 lib/formtastic/input_class_finder.rb