Class: Brut::FrontEnd::Routing::MissingForm

Inherits:
MissingHandler show all
Defined in:
lib/brut/front_end/routing.rb

Instance Attribute Summary collapse

Attributes inherited from MissingHandler

#exception

Attributes inherited from Route

#handler_class, #http_method, #path_template

Instance Method Summary collapse

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_classObject (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