Method: Formtastic::NamespacedClassFinder#find

Defined in:
lib/formtastic/namespaced_class_finder.rb

#find(as) ⇒ Object

Looks up the given reference in the configured namespaces.

Two finder methods are provided, one for development tries to reference the constant directly, triggering Rails' autoloading const_missing machinery; the second one instead for production checks with .const_defined before referencing the constant.



53
54
55
# File 'lib/formtastic/namespaced_class_finder.rb', line 53

def find(as)
  @cache[as] ||= resolve(as)
end