Method: Merb::ControllerExceptions::Base.status=

Defined in:
lib/merb-core/controller/exceptions.rb

.status=(num) ⇒ Object

Set the actual status-code for an Exception class.

If possible, set the STATUS constant, and update any previously registered (inherited) status-code.

Parameters

num<~to_i>

The status code



136
137
138
139
140
141
# File 'lib/merb-core/controller/exceptions.rb', line 136

def status=(num)
  unless self.status?
    register_status_code(self, num)
    self.const_set(:STATUS, num.to_i)
  end
end