Sha256: c6ac76f616895391e67b702eb9a879e6634dd9a14fe9ccafa0417151ae4d7aab

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

module Formtastic

  # Uses the {NamespacedClassFinder} to look up action class names.
  #
  # See {Formtastic::Helpers::ActionHelper#namespaced_action_class} for details.
  #
  class ActionClassFinder < NamespacedClassFinder

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

    def class_name(as)
      "#{super}Action"
    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/action_class_finder.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/formtastic/action_class_finder.rb
formtastic-4.0.0 lib/formtastic/action_class_finder.rb
formtastic-4.0.0.rc1 lib/formtastic/action_class_finder.rb
formtastic-3.1.5 lib/formtastic/action_class_finder.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/formtastic-3.1.4/lib/formtastic/action_class_finder.rb
formtastic-3.1.4 lib/formtastic/action_class_finder.rb
formtastic-3.1.3 lib/formtastic/action_class_finder.rb
formtastic-3.1.2 lib/formtastic/action_class_finder.rb
formtastic-3.1.1 lib/formtastic/action_class_finder.rb