Class: Formtastic::ActionClassFinder

Inherits:
NamespacedClassFinder show all
Defined in:
lib/formtastic/action_class_finder.rb

Overview

Uses the NamespacedClassFinder to look up action class names.

See Helpers::ActionHelper#namespaced_action_class for details.

Instance Method Summary collapse

Methods inherited from NamespacedClassFinder

#find, #resolve, use_const_defined?

Constructor Details

#initialize(builder) ⇒ ActionClassFinder

Returns a new instance of ActionClassFinder.

Parameters:


10
11
12
# File 'lib/formtastic/action_class_finder.rb', line 10

def initialize(builder)
  super builder.action_namespaces
end

Instance Method Details

#class_name(as) ⇒ Object


14
15
16
# File 'lib/formtastic/action_class_finder.rb', line 14

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