Class: Brut::FrontEnd::Routing::MissingForm
- Inherits:
-
MissingHandler
- Object
- Route
- MissingHandler
- Brut::FrontEnd::Routing::MissingForm
- Defined in:
- lib/brut/front_end/routing.rb
Instance Attribute Summary collapse
-
#form_class ⇒ Object
readonly
Returns the value of attribute form_class.
Attributes inherited from MissingHandler
Attributes inherited from Route
#handler_class, #http_method, #path_template
Instance Method Summary collapse
-
#initialize(path_template, ex) ⇒ MissingForm
constructor
A new instance of MissingForm.
Methods inherited from Route
#==, #path, #path_params, #url
Constructor Details
#initialize(path_template, ex) ⇒ MissingForm
Returns a new instance of MissingForm.
347 348 349 350 351 352 353 354 355 |
# File 'lib/brut/front_end/routing.rb', line 347 def initialize(path_template,ex) super @form_class = begin form_class = Class.new(Brut::FrontEnd::Handlers::MissingHandler::Form) compressed_class_name = ex.class_name_path.join Module.const_set(:"BrutMissingForms#{compressed_class_name}",form_class) form_class end end |
Instance Attribute Details
#form_class ⇒ Object (readonly)
Returns the value of attribute form_class.
346 347 348 |
# File 'lib/brut/front_end/routing.rb', line 346 def form_class @form_class end |